summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hbox.h
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-01-20 12:38:10 +0200
committerNoel Grandin <noel@peralex.com>2015-01-26 08:42:28 +0200
commitb44cbb26efe1d0b0950b1e1613e131b506dc3876 (patch)
tree9b4d5d99e5dad0971079b997a02a6d96536709ca /hwpfilter/source/hbox.h
parent26ad60aec69310fecd918f1c2e09056aa4782320 (diff)
new loplugin: change virtual methods to non-virtual
Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
Diffstat (limited to 'hwpfilter/source/hbox.h')
-rw-r--r--hwpfilter/source/hbox.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index 1ae07fd974bc..aa00c862c2c6 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -52,7 +52,7 @@ struct HBox
/**
* @returns The Size of HBox object
*/
- virtual int WSize();
+ int WSize();
/**
* @returns The Height of HBox object as hunit value.
*/
@@ -383,12 +383,12 @@ struct TxtBox: public FBox
/**
* @returns Count of cell.
*/
- virtual int NCell() { return nCell; }
+ int NCell() { return nCell; }
/**
* This is one of table, text-box, equalizer and button
* @returns Type of this object.
*/
- virtual int Type() { return type; }
+ int Type() { return type; }
virtual bool Read(HWPFile &hwpf) SAL_OVERRIDE;
@@ -660,7 +660,7 @@ struct Picture: public FBox
Picture();
virtual ~Picture();
- virtual int Type ();
+ int Type ();
virtual bool Read (HWPFile &hwpf) SAL_OVERRIDE;
virtual hunit Height (CharShape *sty) SAL_OVERRIDE;