From d2176be2346d6d62bdda4171aecef3f059473d2e Mon Sep 17 00:00:00 2001 From: Alexander Golubev Date: Sat, 8 Aug 2015 01:27:37 +0300 Subject: [PATCH] Mod/Spreadsheet: fix yet another warning (potentialy harmful) Warning was -Woverloaded-virtual --- src/Mod/Spreadsheet/App/PropertySheet.cpp | 2 +- src/Mod/Spreadsheet/App/PropertySheet.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Spreadsheet/App/PropertySheet.cpp b/src/Mod/Spreadsheet/App/PropertySheet.cpp index 1a3021903..bd8c9318c 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.cpp +++ b/src/Mod/Spreadsheet/App/PropertySheet.cpp @@ -764,7 +764,7 @@ void PropertySheet::removeColumns(int col, int count) } } -unsigned int PropertySheet::getMemSize() +unsigned int PropertySheet::getMemSize() const { return sizeof(*this); } diff --git a/src/Mod/Spreadsheet/App/PropertySheet.h b/src/Mod/Spreadsheet/App/PropertySheet.h index c718d549d..bc7d9ddc8 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.h +++ b/src/Mod/Spreadsheet/App/PropertySheet.h @@ -105,7 +105,7 @@ public: void removeColumns(int col, int count); - unsigned int getMemSize (void); + virtual unsigned int getMemSize (void) const; bool mergeCells(CellAddress from, CellAddress to);