fixed refcount of eListboxPythonStringContent
[enigma2.git] / lib / base / eerror.cpp
index 0871bb715f78748cd4e823373d28cc1e0ac6c1cf..11bb994368ce58fb54ddf4f36c7f8c82558751da 100644 (file)
@@ -4,11 +4,13 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#include <lib/gui/emessage.h>
+#include <string>
+
+// #include <lib/gui/emessage.h>
 
 int infatal=0;
 
-Signal2<void, int, const eString&> logOutput;
+Signal2<void, int, const std::string&> logOutput;
 int logOutputConsole=1;
 
 void eFatal(const char* fmt, ...)
@@ -20,6 +22,7 @@ void eFatal(const char* fmt, ...)
        va_end(ap);
        logOutput(lvlFatal, buf);
        fprintf(stderr, "%s\n",buf );
+#if 0
        if (!infatal)
        {
                infatal=1;
@@ -27,6 +30,8 @@ void eFatal(const char* fmt, ...)
                msg.show();
                msg.exec();
        }
+#endif
+
        _exit(0);
 }
 
@@ -38,7 +43,7 @@ void eDebug(const char* fmt, ...)
        va_start(ap, fmt);
        vsnprintf(buf, 1024, fmt, ap);
        va_end(ap);
-       logOutput(lvlDebug, eString(buf) + "\n");
+       logOutput(lvlDebug, std::string(buf) + "\n");
        if (logOutputConsole)
                fprintf(stderr, "%s\n", buf);
 }
@@ -62,7 +67,7 @@ void eWarning(const char* fmt, ...)
        va_start(ap, fmt);
        vsnprintf(buf, 1024, fmt, ap);
        va_end(ap);
-       logOutput(lvlWarning, eString(buf) + "\n");
+       logOutput(lvlWarning, std::string(buf) + "\n");
        if (logOutputConsole)
                fprintf(stderr, "%s\n", buf);
 }