From 313b03080da8b09f5bc897b31d6c52b1b36cda62 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Fri, 12 Jun 2020 21:45:59 +0200 Subject: [PATCH] fix deprecated warning QTextStream& QTextStreamFunctions::endl(QTextStream&) simple but no buffer flush --- sources/conductornumexport.cpp | 2 +- sources/nomenclature.cpp | 2 +- sources/ui/bomexportdialog.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/conductornumexport.cpp b/sources/conductornumexport.cpp index fd5abeb04..500673e66 100644 --- a/sources/conductornumexport.cpp +++ b/sources/conductornumexport.cpp @@ -67,7 +67,7 @@ bool ConductorNumExport::toCsv() if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { QTextStream stream(&file); - stream << wiresNum() << endl; + stream << wiresNum() << "\n"; } else { return false; diff --git a/sources/nomenclature.cpp b/sources/nomenclature.cpp index 28947f27c..ffca83826 100644 --- a/sources/nomenclature.cpp +++ b/sources/nomenclature.cpp @@ -66,7 +66,7 @@ bool nomenclature::saveToCSVFile() } if (file.open(QIODevice::WriteOnly | QIODevice::Text)){ QTextStream stream(&file); - stream << getNomenclature() << endl; + stream << getNomenclature() << "\n"; } else return false; } diff --git a/sources/ui/bomexportdialog.cpp b/sources/ui/bomexportdialog.cpp index 410cd32d8..6a9f6af92 100644 --- a/sources/ui/bomexportdialog.cpp +++ b/sources/ui/bomexportdialog.cpp @@ -151,7 +151,7 @@ int BOMExportDialog::exec() if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { QTextStream stream(&file); - stream << getBom() << endl; + stream << getBom() << "\n"; } } } -- 2.26.2