Skip to content

Ghidra is a software reverse engineering (SRE) framework

Don't use nullptr keyword yet.

caheckman60e48ee1c3fe
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc
index f4e4f9c3fe..20664eec1b 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc
@@ -1587,7 +1587,7 @@ void SleighCompile::buildDecisionTrees(void)
for(int4 i=0;i<tables.size();++i)
tables[i]->buildDecisionTree(props);
- const vector<pair<Constructor*, Constructor*>> &ierrors( props.getIdentErrors() );
+ const vector<pair<Constructor*, Constructor*> > &ierrors( props.getIdentErrors() );
if (ierrors.size() != 0) {
string identMsg = "Constructor has identical pattern to constructor at ";
for(int4 i=0;i<ierrors.size();++i) {
@@ -1599,7 +1599,7 @@ void SleighCompile::buildDecisionTrees(void)
}
}
- const vector<pair<Constructor *, Constructor*>> &cerrors( props.getConflictErrors() );
+ const vector<pair<Constructor *, Constructor*> > &cerrors( props.getConflictErrors() );
if (!lenientconflicterrors && cerrors.size() != 0) {
string conflictMsg = "Constructor pattern cannot be distinguished from constructor at ";
for(int4 i=0;i<cerrors.size();++i) {
@@ -1616,7 +1616,7 @@ void SleighCompile::buildPatterns(void)
{
if (root == 0) {
- reportError(nullptr, "No patterns to match.");
+ reportError((const Location *)0, "No patterns to match.");
return;
}
ostringstream msg;
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.hh
index 34cc142708..5eed414a59 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.hh
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/slghsymbol.hh
@@ -525,13 +525,13 @@ public:
};
class DecisionProperties {
- vector<pair<Constructor *, Constructor *>> identerrors;
- vector<pair<Constructor *, Constructor *>> conflicterrors;
+ vector<pair<Constructor *, Constructor *> > identerrors;
+ vector<pair<Constructor *, Constructor *> > conflicterrors;
public:
void identicalPattern(Constructor *a,Constructor *b);
void conflictingPattern(Constructor *a,Constructor *b);
- const vector<pair<Constructor *, Constructor *>> &getIdentErrors(void) const { return identerrors; }
- const vector<pair<Constructor *, Constructor *>> &getConflictErrors(void) const { return conflicterrors; }
+ const vector<pair<Constructor *, Constructor *> > &getIdentErrors(void) const { return identerrors; }
+ const vector<pair<Constructor *, Constructor *> > &getConflictErrors(void) const { return conflicterrors; }
};
class DecisionNode {