Change one case of unit test using std::string to std::string const &, just for better testing..
This commit is contained in:
1 parent
ef2c9d6251
commit
5bcc4ba3b6
1 file changed
+1
-1
+1
-1
@@ -36,7 +36,7 @@ public:
|
||||
|
||||
Foo () : m_datum (""), m_initialized (false)
|
||||
{ Foo::instance_count++; }
|
||||
Foo (std::string datum) : m_datum (datum), m_initialized (false)
|
||||
Foo (std::string const &datum) : m_datum (datum), m_initialized (false)
|
||||
{ Foo::instance_count++; }
|
||||
std::string get_datum () const { return m_datum; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user