don't cut long lines

This commit is contained in:
Stojce Slavkovski 2013-12-17 23:16:16 +01:00
parent 36109c090e
commit 4509b8dbe5
2 changed files with 2 additions and 4 deletions

View file

@ -158,7 +158,7 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
// call Menu getInstance static method to set up the menu
_window->setMenuBar(Menu::getInstance());
qDebug( "[VERSION] Build sequence: %i", BUILD_VERSION);
qDebug("[VERSION] Build sequence: %i", BUILD_VERSION);
unsigned int listenPort = 0; // bind to an ephemeral port by default
const char** constArgv = const_cast<const char**>(argv);
@ -185,7 +185,6 @@ Application::Application(int& argc, char** argv, timeval &startup_time) :
// network receive thread and voxel parsing thread are both controlled by the --nonblocking command line
_enableProcessVoxelsThread = _enableNetworkThread = !cmdOptionExists(argc, constArgv, "--nonblocking");
// setup QSettings
// read the ApplicationInfo.ini file for Name/Version/Domain information
QSettings applicationInfo(resourcesPath + "/info/ApplicationInfo.ini", QSettings::IniFormat);

View file

@ -119,7 +119,7 @@ void LogDisplay::addMessage(const char* ptr) {
_writePos = _chars;
}
if (++_writtenInLine >= _lineLength || c == '\0') {
if (c == '\0') {
// new line? store its start to the line buffer and mark next line as empty
++_lastLinePos;
@ -149,7 +149,6 @@ void LogDisplay::addMessage(const char* ptr) {
// remember start position in character buffer for next line and reset character count
_writeLineStartPos = _writePos;
_writtenInLine = 0;
}
}