Cleanup: Remove unnecessary std::string braces for default construction

std::string has a default constructor, so this is unnecessary.
This commit is contained in:
Hans Goudey
2024-02-02 11:08:07 -05:00
parent 311a2ec74d
commit 432ed47084
2 changed files with 2 additions and 2 deletions

View File

@@ -197,7 +197,7 @@ class PreviewGridItem : public AbstractGridViewItem {
bool hide_label_ = false;
public:
std::string label{};
std::string label;
int preview_icon_id = ICON_NONE;
PreviewGridItem(StringRef identifier, StringRef label, int preview_icon_id);

View File

@@ -180,7 +180,7 @@ class AbstractTreeViewItem : public AbstractViewItem, public TreeViewItemContain
protected:
/** This label is used as the default way to identifying an item within its parent. */
std::string label_{};
std::string label_;
public:
/* virtual */ ~AbstractTreeViewItem() override = default;