Skip to content

Commit

Permalink
Adds missing const
Browse files Browse the repository at this point in the history
  • Loading branch information
kenorb committed Sep 3, 2024
1 parent 6ecae7f commit 6c796cf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Exchange/Account/AccountBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class AccountBase : public Dynamic {
/**
* Returns textual representation of the object instance.
*/
virtual string ToString() { return SerializerConverter::FromObject(THIS_REF).ToString<SerializerJson>(); }
virtual string ToString() const { return SerializerConverter::FromObject(THIS_REF).ToString<SerializerJson>(); }

/* Serializers */

Expand Down
2 changes: 1 addition & 1 deletion Exchange/Exchange.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,5 +202,5 @@ class Exchange : public Taskable<DataParamEntry> {
/**
* Returns textual representation of the object instance.
*/
string ToString() { return SerializerConverter::FromObject(THIS_REF).ToString<SerializerJson>(); }
string ToString() const { return SerializerConverter::FromObject(THIS_REF).ToString<SerializerJson>(); }
};
2 changes: 1 addition & 1 deletion Platform/Platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ class Platform : public Taskable<DataParamEntry> {
/**
* Returns textual representation of the object instance.
*/
string ToString() { return SerializerConverter::FromObject(THIS_REF).ToString<SerializerJson>(); }
string ToString() const { return SerializerConverter::FromObject(THIS_REF).ToString<SerializerJson>(); }
};

bool Platform::initialized = false;
Expand Down

0 comments on commit 6c796cf

Please sign in to comment.