From 14936b04aecf1f94afff06cdc79309b4d226bbcd Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Wed, 7 Feb 2024 13:20:23 -0500 Subject: [PATCH] Fix build with Qt6 (needs Qt::endl namespace) Signed-off-by: Geoff Hutchison --- avogadro/avogadro.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/avogadro/avogadro.cpp b/avogadro/avogadro.cpp index 6ef1abd8..b98512a9 100644 --- a/avogadro/avogadro.cpp +++ b/avogadro/avogadro.cpp @@ -91,7 +91,7 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext& context, QFile outFile(writableDocs + "/avogadro2.log"); outFile.open(QIODevice::WriteOnly | QIODevice::Append); QTextStream ts(&outFile); - ts << message << endl; + ts << message << Qt::endl; } int main(int argc, char* argv[])