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;