diff options
Diffstat (limited to 'src/message.cpp')
-rw-r--r-- | src/message.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/message.cpp b/src/message.cpp index 29f4d31..5c9e783 100644 --- a/src/message.cpp +++ b/src/message.cpp @@ -32,9 +32,9 @@ static FILE *warnFile = stderr; void initWarningFormat() { - int filePos = Config::instance()->getString("WARN_FORMAT").find("$file"); - int linePos = Config::instance()->getString("WARN_FORMAT").find("$line"); - int textPos = Config::instance()->getString("WARN_FORMAT").find("$text"); + int filePos = Config_getString("WARN_FORMAT").find("$file"); + int linePos = Config_getString("WARN_FORMAT").find("$line"); + int textPos = Config_getString("WARN_FORMAT").find("$text"); // sort items on position (there are 6 cases) warnFormatOrder = 1; @@ -68,7 +68,7 @@ void initWarningFormat() substitute( substitute( substitute( - Config::instance()->getString("WARN_FORMAT"), + Config_getString("WARN_FORMAT"), "$file","%s" ), "$text","%s" @@ -81,16 +81,16 @@ void initWarningFormat() // replace(QRegExp("\\$line"),"%d")+ // '\n'; - if (!Config::instance()->getString("WARN_LOGFILE").isEmpty()) + if (!Config_getString("WARN_LOGFILE").isEmpty()) { - warnFile = fopen(Config::instance()->getString("WARN_LOGFILE"),"w"); + warnFile = fopen(Config_getString("WARN_LOGFILE"),"w"); } } void msg(const char *fmt, ...) { - if (!Config::instance()->getBool("QUIET")) + if (!Config_getBool("QUIET")) { va_list args; va_start(args, fmt); @@ -101,7 +101,7 @@ void msg(const char *fmt, ...) void warn(const char *file,int line,const char *fmt, ...) { - if (Config::instance()->getBool("WARNINGS")) + if (Config_getBool("WARNINGS")) { if (file==0) file="<unknown>"; char text[4096]; @@ -125,7 +125,7 @@ void warn(const char *file,int line,const char *fmt, ...) void warn_cont(const char *fmt, ...) { - if (Config::instance()->getBool("WARNINGS")) + if (Config_getBool("WARNINGS")) { va_list args; va_start(args, fmt); @@ -136,7 +136,7 @@ void warn_cont(const char *fmt, ...) void warn_undoc(const char *file,int line,const char *fmt, ...) { - if (Config::instance()->getBool("WARN_IF_UNDOCUMENTED")) + if (Config_getBool("WARN_IF_UNDOCUMENTED")) { if (file==0) file="<unknwon>"; char text[4096]; |