Fixed a bunch of linker errors preventing optimized compile on Linux.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1352 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
coppro
2009-01-14 19:13:05 +00:00
parent 0bc1c1af30
commit 30671ad5b0
6 changed files with 33 additions and 15 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ String format_input(const String& format, const ScriptValue& input) {
// determine type of input
ScriptType type = input.type();
if (type == SCRIPT_DATETIME) {
return static_cast<wxDateTime>(input).Format(format.c_str());
input.toDateTime().Format(format.c_str());
} else {
// determine type expected by format string
String fmt = _("%") + replace_all(format, _("%"), _(""));