summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/DialogModel.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-13 09:44:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-14 10:15:03 +0100
commit6be8a39eb9ae3e62baa764127b8a778f5444b2f8 (patch)
treecc2a6bbfd0cc0cf4817d46b99a57792454e8484d /chart2/source/controller/dialogs/DialogModel.cxx
parent2b9d8d6b2f661c9aa08fd01e87949f6c01706c16 (diff)
-Werror,-Wunused-member-function
Change-Id: I36135da5d3ccf6f9860d4b248c0622145bdaf777
Diffstat (limited to 'chart2/source/controller/dialogs/DialogModel.cxx')
-rw-r--r--chart2/source/controller/dialogs/DialogModel.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx
index e98c58e8a9a7..6c2ad6190f4c 100644
--- a/chart2/source/controller/dialogs/DialogModel.cxx
+++ b/chart2/source/controller/dialogs/DialogModel.cxx
@@ -180,8 +180,12 @@ struct lcl_DataSeriesContainerAppend : public
return *this;
}
+ // Implement output operator requirements as required by std::copy (and
+ // implement prefix increment in terms of postfix increment to avoid unused
+ // member function warnings for the latter in the common case where
+ // std::copy would not actually need it):
lcl_DataSeriesContainerAppend & operator* () { return *this; }
- lcl_DataSeriesContainerAppend & operator++ () { return *this; }
+ lcl_DataSeriesContainerAppend & operator++ () { return operator++(0); }
lcl_DataSeriesContainerAppend & operator++ (int) { return *this; }
lcl_DataSeriesContainerAppend & operator= ( lcl_DataSeriesContainerAppend& ) { return *this; }
@@ -239,8 +243,12 @@ struct lcl_RolesWithRangeAppend : public
return *this;
}
+ // Implement output operator requirements as required by std::copy (and
+ // implement prefix increment in terms of postfix increment to avoid unused
+ // member function warnings for the latter in the common case where
+ // std::copy would not actually need it):
lcl_RolesWithRangeAppend & operator* () { return *this; }
- lcl_RolesWithRangeAppend & operator++ () { return *this; }
+ lcl_RolesWithRangeAppend & operator++ () { return operator++(0); }
lcl_RolesWithRangeAppend & operator++ (int) { return *this; }
lcl_RolesWithRangeAppend & operator= ( lcl_RolesWithRangeAppend& ) { return *this; }