From 3f8e95fabc4ccd8d39dcef5222b32d1244ffb8d1 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Mon, 30 Jul 2018 01:03:10 +0300 Subject: [PATCH] Update the base module utility to comply with the new StackStrF changes. --- shared/Base/Utility.inl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/shared/Base/Utility.inl b/shared/Base/Utility.inl index c1381cbc..00f7bf1d 100644 --- a/shared/Base/Utility.inl +++ b/shared/Base/Utility.inl @@ -794,9 +794,9 @@ CSStr FetchDateObjStr(const Object & value) // Push the specified object onto the stack Var< const Object & >::push(vm, value); // Grab the date instance as a string - const StackStrF val(vm, -1, false); + StackStrF val(vm, -1); // Validate the result - if (SQ_FAILED(val.mRes)) + if (SQ_FAILED(val.Proc(false))) { return _SC("1000-01-01"); } @@ -874,9 +874,9 @@ CSStr FetchTimeObjStr(const Object & value) // Push the specified object onto the stack Var< const Object & >::push(vm, value); // Grab the time instance as a string - const StackStrF val(vm, -1, false); + StackStrF val(vm, -1); // Validate the result - if (SQ_FAILED(val.mRes)) + if (SQ_FAILED(val.Proc(false))) { return _SC("00:00:00"); } @@ -992,9 +992,9 @@ CSStr FetchDatetimeObjStr(const Object & value) // Push the specified object onto the stack Var< const Object & >::push(vm, value); // Grab the date-time instance as a string - const StackStrF val(vm, -1, false); + StackStrF val(vm, -1); // Validate the result - if (SQ_FAILED(val.mRes)) + if (SQ_FAILED(val.Proc(false))) { return _SC("1000-01-01 00:00:00"); }