summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-12-23 05:22:03 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-12-23 05:22:03 +0100
commit3bbd03478176825dd500d9019d206e97a8f43b03 (patch)
tree8f00089247cb3fd08d7b9035d588e18cce21de71 /src
parentFix appveyor deps/cmakelist path (diff)
downloadnheko-3bbd03478176825dd500d9019d206e97a8f43b03.tar.xz
Fix transitive dependencies on iostream
Diffstat (limited to 'src')
-rw-r--r--src/Cache.cpp4
-rw-r--r--src/TextInputWidget.cpp2
-rw-r--r--src/main.cpp10
3 files changed, 9 insertions, 7 deletions
diff --git a/src/Cache.cpp b/src/Cache.cpp

index 0bfc2842..d74bbe91 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp
@@ -1065,8 +1065,8 @@ Cache::saveInvite(lmdb::txn &txn, lmdb::val(json(msg).dump())); if (!res) - std::cout << "couldn't save data" << json(msg).dump() - << '\n'; + nhlog::db()->warn("couldn't save data: {}", + json(msg).dump()); }, e); } diff --git a/src/TextInputWidget.cpp b/src/TextInputWidget.cpp
index 5e63eca5..b481a57c 100644 --- a/src/TextInputWidget.cpp +++ b/src/TextInputWidget.cpp
@@ -537,7 +537,7 @@ TextInputWidget::TextInputWidget(QWidget *parent) emit input_->resultsRetrieved(cache::searchUsers( ChatPage::instance()->currentRoom().toStdString(), q)); } catch (const lmdb::error &e) { - std::cout << e.what() << '\n'; + nhlog::db()->error("Suggestion retrieval failed: {}", e.what()); } }); }); diff --git a/src/main.cpp b/src/main.cpp
index ec96f0ec..37b38c1b 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -15,6 +15,8 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#include <iostream> + #include <QApplication> #include <QCommandLineParser> #include <QDesktopWidget> @@ -43,15 +45,15 @@ #include "emoji/MacHelper.h" #endif -#if defined(Q_OS_LINUX) -#include <boost/stacktrace.hpp> -#include <csignal> - #ifdef QML_DEBUGGING #include <QQmlDebuggingEnabler> QQmlDebuggingEnabler enabler; #endif +#if defined(Q_OS_LINUX) +#include <boost/stacktrace.hpp> +#include <csignal> + void stacktraceHandler(int signum) {