Merge pull request #51 from hzeller/no-const-on-integral-return-type
Don't use const for integral return types. It is confusing and doesn't
diff --git a/src/Design/FileContent.cpp b/src/Design/FileContent.cpp
index d51dbde..30c6f88 100644
--- a/src/Design/FileContent.cpp
+++ b/src/Design/FileContent.cpp
@@ -190,7 +190,7 @@
NodeId& FileContent::Parent(NodeId index) { return m_objects[index].m_parent; }
-const VObjectType FileContent::Type(NodeId index) {
+VObjectType FileContent::Type(NodeId index) {
return (VObjectType)m_objects[index].m_type;
}
diff --git a/src/Design/FileContent.h b/src/Design/FileContent.h
index 55e6eef..06378e1 100644
--- a/src/Design/FileContent.h
+++ b/src/Design/FileContent.h
@@ -148,7 +148,7 @@
NodeId& Parent(NodeId index);
- const VObjectType Type(NodeId index);
+ VObjectType Type(NodeId index);
unsigned int& Line(NodeId index);
diff --git a/src/SourceCompile/SymbolTable.h b/src/SourceCompile/SymbolTable.h
index 06335c5..e1b49cc 100644
--- a/src/SourceCompile/SymbolTable.h
+++ b/src/SourceCompile/SymbolTable.h
@@ -45,7 +45,7 @@
SymbolId getId(const std::string symbol);
const std::string getSymbol(SymbolId id);
const std::string getBadSymbol() { return m_badSymbol; }
- const SymbolId getBadId() { return m_badId; }
+ SymbolId getBadId() const { return m_badId; }
virtual ~SymbolTable();
static const std::string getEmptyMacroMarker() { return m_emptyMacroMarker; }