X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=include%2Fdescriptive.h;h=33f62fdbdcf40363e441c122e6364f81aede92e4;hb=774cf593d2dafc996cc643e68ae19882839ee888;hp=08be41e8be3638613191c17d4515c70bf9591d47;hpb=1fb7bf70d04d24cbb0c1789a3c5125aadeb8b158;p=command.git diff --git a/include/descriptive.h b/include/descriptive.h index 08be41e..33f62fd 100644 --- a/include/descriptive.h +++ b/include/descriptive.h @@ -8,7 +8,7 @@ namespace command { * Descriptive behaviour class. */ class Descriptive { - std::string description; + const std::string description; public: /** * Default constructor. @@ -19,12 +19,14 @@ namespace command { : description(description) { } + virtual ~Descriptive() { } + /** * Returns description of the current class. * * @return provided description for the class */ - std::string describe() { + const std::string & describe() { return description; } };