Skip to content
Browse files

Back the logger with a QFile

Previously all messages were written to a string which grew unbounded
when logging was disabled.
  • Loading branch information...
1 parent 29c360e commit 91a18aef1f3ad6fd230b9217b1df722da71999d8 @mhoran mhoran committed Jan 15, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/WebPageManager.cpp
  2. +1 −1 src/WebPageManager.h
View
2 src/WebPageManager.cpp
@@ -7,7 +7,7 @@ WebPageManager::WebPageManager(QObject *parent) : QObject(parent) {
m_cookieJar = new NetworkCookieJar(this);
m_success = true;
m_loggingEnabled = false;
- m_ignoredOutput = new QString();
+ m_ignoredOutput = new QFile(this);
m_timeout = -1;
createPage(this)->setFocus();
}
View
2 src/WebPageManager.h
@@ -52,7 +52,7 @@ class WebPageManager : public QObject {
QSet<WebPage *> m_started;
bool m_success;
bool m_loggingEnabled;
- QString *m_ignoredOutput;
+ QFile *m_ignoredOutput;
int m_timeout;
};

0 comments on commit 91a18ae

Please sign in to comment.
Something went wrong with that request. Please try again.