Pointer cleanup (#242)
- Made greater use of smart pointers, eliminating many instances of manual memory management - Do not use pointers at all for many non-polymorphic classes - Assorted other code cleanup
This commit is contained in:
+2
-2
@@ -52,7 +52,7 @@ namespace glabels
|
||||
/////////////////////////////////
|
||||
QString toString() const;
|
||||
std::string toStdString() const;
|
||||
QString expand( merge::Record* record, Variables* variables ) const;
|
||||
QString expand( const merge::Record& record, const Variables& variables ) const;
|
||||
bool hasPlaceHolders() const;
|
||||
bool isEmpty() const;
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace glabels
|
||||
|
||||
struct Token
|
||||
{
|
||||
bool isField;
|
||||
bool isField{ false };
|
||||
QString text;
|
||||
SubstitutionField field;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user