From 0f182900c256abe582cb7be4069287831bf93943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Fri, 17 Jun 2022 09:54:50 +0200 Subject: [PATCH] Fix build on older gcc --- database.cpp | 2 +- imageinfo.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/database.cpp b/database.cpp index 28529bf..be3883c 100644 --- a/database.cpp +++ b/database.cpp @@ -299,7 +299,7 @@ bool Database::indexFile(const QFileInfo &file) } QVariantList file_id, keys, values, comments; - for(auto &record : info.fitsHeader) + for(const auto &record : info.fitsHeader) { file_id << last_id; keys << QString(record.key); diff --git a/imageinfo.h b/imageinfo.h index a9210c2..b12d15b 100644 --- a/imageinfo.h +++ b/imageinfo.h @@ -4,6 +4,7 @@ #include #include #include +#include namespace pcl { class FITSHeaderKeyword; } @@ -13,6 +14,7 @@ struct FITSRecord QVariant value; QByteArray comment; bool editable() const; + FITSRecord(){} FITSRecord(const QByteArray &key, const QVariant &value, const QByteArray &comment); FITSRecord(const pcl::FITSHeaderKeyword &record); QByteArray valueToByteArray() const;