Skip to content

Commit

Permalink
Merge pull request #355 from pklampros/keycolumn_name
Browse files Browse the repository at this point in the history
Make sure the key column actually gets a name
  • Loading branch information
pklampros authored Jul 9, 2020
2 parents 6d31883 + 7118ad2 commit 776b128
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions salalib/attributetable.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
#include <salalib/displayparams.h>
#include <salalib/mgraph_consts.h>

///
/// Namespace to hold known attributes
///
namespace AttributeName {
const char * const REF = "Ref";
}

///
/// Interface to an attribute row
Expand Down Expand Up @@ -160,10 +166,7 @@ class AttributeColumnImpl: public AttributeColumn, AttributeColumnStats
class KeyColumn : public AttributeColumnImpl
{
public:
KeyColumn() : AttributeColumnImpl(), m_name("Ref")
{}
private:
std::string m_name;
KeyColumn() : AttributeColumnImpl() { setName(AttributeName::REF); }
};


Expand Down

0 comments on commit 776b128

Please sign in to comment.