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()));
if (!res)
std::cout << "couldn't save data" << json(msg).dump()
<< '\n';
nhlog::db()->warn("couldn't save data: {}",
json(msg).dump());
},
e);
}

View file

@ -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());
}
});
});

View file

@ -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)
{