Fix build on older gcc
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <QTreeWidget>
|
||||
#include <wcslib/wcs.h>
|
||||
#include <cmath>
|
||||
#include <memory>
|
||||
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user