Skip to content

Commit

Permalink
fixed leftover warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
amystamile-usgs committed Jan 10, 2024
1 parent e5d501f commit 73eb67c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion isis/src/base/apps/isisimport/isisimport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ namespace Isis {
stretchPairs->GetLine(line); //assigns value to line
line = line.simplified();

for (QString value: line.split(QRegExp("[\\s,]"), QString::SkipEmptyParts)) {
for (QString value: line.split(QRegExp("[\\s,]"), Qt::SkipEmptyParts)) {
vectorStretchPairs.push_back(temp1);
vectorStretchPairs.push_back(toDouble(value));
temp1++;
Expand Down
10 changes: 4 additions & 6 deletions isis/src/base/objs/LidarData/LidarData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,8 @@ namespace Isis {

// Load file
QByteArray saveData = loadFile.readAll();
// Try to load from JSON (ASCII); if it can not, load as binary.
QJsonDocument loadDoc(QJsonDocument::fromJson(saveData));
if (loadDoc.isNull()) {
loadDoc = QJsonDocument::fromBinaryData(saveData);
}
QCborValue loadData(saveData);
QJsonDocument loadDoc(QJsonDocument::fromJson(loadData.toByteArray()));

int totalMeasures = 0;

Expand Down Expand Up @@ -613,7 +610,8 @@ namespace Isis {
saveFile.write(lidarDataDoc.toJson());
}
else {
saveFile.write(lidarDataDoc.toBinaryData());
QCborValue json(lidarDataDoc.toJson());
saveFile.write(json.toByteArray());
}
}

Expand Down
2 changes: 1 addition & 1 deletion isis/src/base/objs/LidarData/unitTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void print(const LidarData &lidarData) {
QList< QSharedPointer<LidarControlPoint> > points = lidarData.points();

// Order the control points so test runs will list points in a consistent order
qSort(points.begin(), points.end(), cmpLessThan);
std::sort(points.begin(), points.end(), cmpLessThan);

std::cout << "LidarData:" << std::endl;
foreach (QSharedPointer<LidarControlPoint> point, points) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ const PvlFlatMap &FeatureAlgorithmFactory::globalParameters() const {
*/
PvlFlatMap FeatureAlgorithmFactory::parseGlobalParameters(const QString &globals) {
PvlFlatMap pvlmap;
QStringList parms = globals.split("@", QString::SkipEmptyParts);
QStringList parms = globals.split("@", Qt::SkipEmptyParts);
for (int i = 0 ; i < parms.size() ; i++ ) {

// Only parse substrings that have 2 distinct parts separated by :
QStringList parts = parms[i].split(":", QString::SkipEmptyParts);
QStringList parts = parms[i].split(":", Qt::SkipEmptyParts);
if ( parts.size() == 2 ) {
pvlmap.add(parts[0], parts[1]);
}
Expand Down
2 changes: 1 addition & 1 deletion isis/src/lro/apps/lronaccal/lronaccal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ namespace Isis {
vector<double> line;
lineString = lineString.simplified().remove(QRegExp("^[ ,]*")).trimmed();

QStringList lineTokens = lineString.split(QRegExp("[ ,]"), QString::SkipEmptyParts);
QStringList lineTokens = lineString.split(QRegExp("[ ,]"), Qt::SkipEmptyParts);
foreach (QString value, lineTokens) {
line.push_back(toDouble(value));
}
Expand Down

0 comments on commit 73eb67c

Please sign in to comment.