Fix transitive dependencies on iostream

This commit is contained in:
Nicolas Werner 2019-12-23 05:22:03 +01:00
parent f2f0efe9b3
commit 3bbd034781
3 changed files with 9 additions and 7 deletions

View file

@ -1065,8 +1065,8 @@ Cache::saveInvite(lmdb::txn &txn,
lmdb::val(json(msg).dump())); lmdb::val(json(msg).dump()));
if (!res) if (!res)
std::cout << "couldn't save data" << json(msg).dump() nhlog::db()->warn("couldn't save data: {}",
<< '\n'; json(msg).dump());
}, },
e); e);
} }

View file

@ -537,7 +537,7 @@ TextInputWidget::TextInputWidget(QWidget *parent)
emit input_->resultsRetrieved(cache::searchUsers( emit input_->resultsRetrieved(cache::searchUsers(
ChatPage::instance()->currentRoom().toStdString(), q)); ChatPage::instance()->currentRoom().toStdString(), q));
} catch (const lmdb::error &e) { } catch (const lmdb::error &e) {
std::cout << e.what() << '\n'; nhlog::db()->error("Suggestion retrieval failed: {}", e.what());
} }
}); });
}); });

View file

@ -15,6 +15,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <iostream>
#include <QApplication> #include <QApplication>
#include <QCommandLineParser> #include <QCommandLineParser>
#include <QDesktopWidget> #include <QDesktopWidget>
@ -43,15 +45,15 @@
#include "emoji/MacHelper.h" #include "emoji/MacHelper.h"
#endif #endif
#if defined(Q_OS_LINUX)
#include <boost/stacktrace.hpp>
#include <csignal>
#ifdef QML_DEBUGGING #ifdef QML_DEBUGGING
#include <QQmlDebuggingEnabler> #include <QQmlDebuggingEnabler>
QQmlDebuggingEnabler enabler; QQmlDebuggingEnabler enabler;
#endif #endif
#if defined(Q_OS_LINUX)
#include <boost/stacktrace.hpp>
#include <csignal>
void void
stacktraceHandler(int signum) stacktraceHandler(int signum)
{ {