diff --git a/modules/ini/Common.cpp b/modules/ini/Common.cpp index 79b96139..43d5c857 100644 --- a/modules/ini/Common.cpp +++ b/modules/ini/Common.cpp @@ -84,20 +84,20 @@ void IniResult::Check() const switch (m_Result) { case SI_FAIL: - SqThrowF("Unable to %s. Probably invalid", m_Action.c_str()); + STHROWF("Unable to %s. Probably invalid", m_Action.c_str()); break; case SI_NOMEM: - SqThrowF("Unable to %s. Ran out of memory", m_Action.c_str()); + STHROWF("Unable to %s. Ran out of memory", m_Action.c_str()); break; case SI_FILE: - SqThrowF("Unable to %s. %s", strerror(errno)); + STHROWF("Unable to %s. %s", strerror(errno)); break; case SI_OK: case SI_UPDATED: case SI_INSERTED: break; /* These are not error messahes. */ default: - SqThrowF("Unable to %s for some unforeseen reason", m_Action.c_str()); + STHROWF("Unable to %s for some unforeseen reason", m_Action.c_str()); } } diff --git a/modules/ini/Document.cpp b/modules/ini/Document.cpp index 85f1fb84..8c76eeef 100644 --- a/modules/ini/Document.cpp +++ b/modules/ini/Document.cpp @@ -25,7 +25,7 @@ void Document::Validate() const { // Is the document handle valid? if (!m_Doc) - SqThrowF("Invalid INI document reference"); + STHROWF("Invalid INI document reference"); } // ------------------------------------------------------------------------------------------------ @@ -75,7 +75,7 @@ Object Document::SaveData(bool signature) String source; // Attempt to save the data to string if (m_Doc->Save(source, signature) < 0) - SqThrowF("Unable to save INI document"); + STHROWF("Unable to save INI document"); // Obtain the initial stack size const StackGuard sg(_SqVM); // Transform it into a script object