1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-02-21 20:27:13 +01:00

Update the base module utility to comply with the new StackStrF changes.

This commit is contained in:
Sandu Liviu Catalin 2018-07-30 01:03:10 +03:00
parent f300e7ff4a
commit 3f8e95fabc

View File

@ -794,9 +794,9 @@ CSStr FetchDateObjStr(const Object & value)
// Push the specified object onto the stack // Push the specified object onto the stack
Var< const Object & >::push(vm, value); Var< const Object & >::push(vm, value);
// Grab the date instance as a string // Grab the date instance as a string
const StackStrF val(vm, -1, false); StackStrF val(vm, -1);
// Validate the result // Validate the result
if (SQ_FAILED(val.mRes)) if (SQ_FAILED(val.Proc(false)))
{ {
return _SC("1000-01-01"); return _SC("1000-01-01");
} }
@ -874,9 +874,9 @@ CSStr FetchTimeObjStr(const Object & value)
// Push the specified object onto the stack // Push the specified object onto the stack
Var< const Object & >::push(vm, value); Var< const Object & >::push(vm, value);
// Grab the time instance as a string // Grab the time instance as a string
const StackStrF val(vm, -1, false); StackStrF val(vm, -1);
// Validate the result // Validate the result
if (SQ_FAILED(val.mRes)) if (SQ_FAILED(val.Proc(false)))
{ {
return _SC("00:00:00"); return _SC("00:00:00");
} }
@ -992,9 +992,9 @@ CSStr FetchDatetimeObjStr(const Object & value)
// Push the specified object onto the stack // Push the specified object onto the stack
Var< const Object & >::push(vm, value); Var< const Object & >::push(vm, value);
// Grab the date-time instance as a string // Grab the date-time instance as a string
const StackStrF val(vm, -1, false); StackStrF val(vm, -1);
// Validate the result // Validate the result
if (SQ_FAILED(val.mRes)) if (SQ_FAILED(val.Proc(false)))
{ {
return _SC("1000-01-01 00:00:00"); return _SC("1000-01-01 00:00:00");
} }