summaryrefslogtreecommitdiff
path: root/include/svtools/fmtfield.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-03 13:54:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-04 14:49:08 +0200
commit6f2edd4514dc59f5cbac8c653c6e4b1a96ec28a2 (patch)
tree3dda70a8a50943514c82c7c7493416fc84fc9cd7 /include/svtools/fmtfield.hxx
parent866a4436d3cfac1ff42d7996250bf96fb703aeaa (diff)
new loplugin: inlinesimpleaccessmethods
Create a rewriting plugin for finding methods that simply return object fields, and should therefore be declared in the header, so that the compiler can reduce method calls into a simple fixed-offset load instruction. Change-Id: I7a620fc54250b79681918dc31ed9a8f21118c037 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/svtools/fmtfield.hxx')
-rw-r--r--include/svtools/fmtfield.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svtools/fmtfield.hxx b/include/svtools/fmtfield.hxx
index 792465f371ef..d7bd1f1f1eac 100644
--- a/include/svtools/fmtfield.hxx
+++ b/include/svtools/fmtfield.hxx
@@ -231,7 +231,7 @@ public:
using F2
*/
void UseInputStringForFormatting( bool bUseInputStr = true );
- bool IsUsingInputStringForFormatting() const;
+ bool IsUsingInputStringForFormatting() const { return m_bUseInputStringForFormatting;}
protected:
virtual bool Notify(NotifyEvent& rNEvt) SAL_OVERRIDE;