Skip to content

Commit

Permalink
Per review cleaned up sloppy spacing; made global variables static in…
Browse files Browse the repository at this point in the history
… cnetedit.cpp to avoid issues when linking libisis. Addresses DOI-USGS#5346.
  • Loading branch information
kledmundson committed Nov 29, 2023
1 parent e0863c2 commit 540a00f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
32 changes: 16 additions & 16 deletions isis/src/control/apps/cnetedit/cnetedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,22 @@ namespace Isis {
QMap<QString, QString> *pointsMap, QMap<QString, PvlGroup> *measuresMap);

// Global variables
int numPointsDeleted;
int numMeasuresDeleted;

bool deleteIgnored;
bool preservePoints;
bool retainRef;
bool keepLog;
bool ignoreAll;

QMap<QString, QString> *ignoredPoints;
QMap<QString, PvlGroup> *ignoredMeasures;
QMap<QString, QString> *retainedReferences;
QMap<QString, QString> *editLockedPoints;
QMap<QString, PvlGroup> *editLockedMeasures;

ControlNetValidMeasure *cneteditValidator;
static int numPointsDeleted;
static int numMeasuresDeleted;

static bool deleteIgnored;
static bool preservePoints;
static bool retainRef;
static bool keepLog;
static bool ignoreAll;

static QMap<QString, QString> *ignoredPoints;
static QMap<QString, PvlGroup> *ignoredMeasures;
static QMap<QString, QString> *retainedReferences;
static QMap<QString, QString> *editLockedPoints;
static QMap<QString, PvlGroup> *editLockedMeasures;

static ControlNetValidMeasure *cneteditValidator;

/**
* Edit a control network
Expand Down
4 changes: 2 additions & 2 deletions isis/tests/FunctionalTestsCnetedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ class CneteditCheckValid : public TempTestingFiles {

// set up pvl def file
PvlGroup validMeasureGroup("ValidMeasure");
validMeasureGroup.addKeyword(PvlKeyword("MinDN", "-1000000"));
validMeasureGroup.addKeyword(PvlKeyword("MaxDN", "1000000"));
validMeasureGroup.addKeyword(PvlKeyword("MinDN", "-1000000"));
validMeasureGroup.addKeyword(PvlKeyword("MaxDN", "1000000"));
validMeasureGroup.addKeyword(PvlKeyword("MinEmission", "0"));
validMeasureGroup.addKeyword(PvlKeyword("MaxEmission", "135"));
validMeasureGroup.addKeyword(PvlKeyword("MinIncidence", "0"));
Expand Down

0 comments on commit 540a00f

Please sign in to comment.