summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-06-09 10:09:42 +0200
committerNoel Grandin <noel@peralex.com>2014-06-09 10:10:13 +0200
commit184a00b96235f6432294ded63ce4a4a318effdb5 (patch)
treee4ae0e00cb168fa43d280cfb51a50515258b5320 /extensions
parent534015ad4fd08823b4393dab1ad5d42dedd7bf62 (diff)
loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/commoncontrol.cxx8
-rw-r--r--extensions/source/propctrlr/commoncontrol.hxx4
-rw-r--r--extensions/source/propctrlr/propertyeditor.cxx4
-rw-r--r--extensions/source/propctrlr/propertyeditor.hxx2
-rw-r--r--extensions/source/scanner/sanedlg.cxx4
-rw-r--r--extensions/source/scanner/sanedlg.hxx2
6 files changed, 4 insertions, 20 deletions
diff --git a/extensions/source/propctrlr/commoncontrol.cxx b/extensions/source/propctrlr/commoncontrol.cxx
index 4af9c7f4e95d..23da15b73726 100644
--- a/extensions/source/propctrlr/commoncontrol.cxx
+++ b/extensions/source/propctrlr/commoncontrol.cxx
@@ -56,10 +56,6 @@ namespace pcr
}
- ::sal_Int16 SAL_CALL ControlHelper::getControlType() throw (RuntimeException)
- {
- return m_nControlType;
- }
Reference< XPropertyControlContext > SAL_CALL ControlHelper::getControlContext() throw (RuntimeException)
@@ -80,10 +76,6 @@ namespace pcr
}
- bool SAL_CALL ControlHelper::isModified( ) throw (RuntimeException)
- {
- return m_bModified;
- }
void SAL_CALL ControlHelper::notifyModifiedValue( ) throw (RuntimeException)
diff --git a/extensions/source/propctrlr/commoncontrol.hxx b/extensions/source/propctrlr/commoncontrol.hxx
index 9be15b7f15a9..7eab623cf99e 100644
--- a/extensions/source/propctrlr/commoncontrol.hxx
+++ b/extensions/source/propctrlr/commoncontrol.hxx
@@ -131,11 +131,11 @@ namespace pcr
public:
// XPropertyControl
- ::sal_Int16 SAL_CALL getControlType() throw (::com::sun::star::uno::RuntimeException);
+ ::sal_Int16 SAL_CALL getControlType() throw (::com::sun::star::uno::RuntimeException) { return m_nControlType; }
::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext > SAL_CALL getControlContext() throw (::com::sun::star::uno::RuntimeException);
void SAL_CALL setControlContext( const ::com::sun::star::uno::Reference< ::com::sun::star::inspection::XPropertyControlContext >& _controlcontext ) throw (::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindow > SAL_CALL getControlWindow() throw (::com::sun::star::uno::RuntimeException);
- bool SAL_CALL isModified( ) throw (::com::sun::star::uno::RuntimeException);
+ bool SAL_CALL isModified( ) throw (::com::sun::star::uno::RuntimeException) { return m_bModified; }
void SAL_CALL notifyModifiedValue( ) throw (::com::sun::star::uno::RuntimeException);
// XComponent
diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx
index c302e44fa273..364d07ff7ba9 100644
--- a/extensions/source/propctrlr/propertyeditor.cxx
+++ b/extensions/source/propctrlr/propertyeditor.cxx
@@ -336,10 +336,6 @@ namespace pcr
}
- bool OPropertyEditor::HasHelpSection() const
- {
- return m_bHasHelpSection;
- }
void OPropertyEditor::SetHelpText( const OUString& _rHelpText )
diff --git a/extensions/source/propctrlr/propertyeditor.hxx b/extensions/source/propctrlr/propertyeditor.hxx
index 85aad9e79232..e80dceeffdd2 100644
--- a/extensions/source/propctrlr/propertyeditor.hxx
+++ b/extensions/source/propctrlr/propertyeditor.hxx
@@ -82,7 +82,7 @@ namespace pcr
void SetControlObserver( IPropertyControlObserver* );
void EnableHelpSection( bool _bEnable );
- bool HasHelpSection() const;
+ bool HasHelpSection() const { return m_bHasHelpSection; }
void SetHelpText( const OUString& _rHelpText );
void SetHelpLineLimites( sal_Int32 _nMinLines, sal_Int32 _nMaxLines );
diff --git a/extensions/source/scanner/sanedlg.cxx b/extensions/source/scanner/sanedlg.cxx
index eb25a2104290..173ad3bfa4d7 100644
--- a/extensions/source/scanner/sanedlg.cxx
+++ b/extensions/source/scanner/sanedlg.cxx
@@ -1379,9 +1379,5 @@ bool SaneDlg::SetAdjustedNumericalValue(
return true;
}
-bool SaneDlg::getDoScan()
-{
- return doScan;
-}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/extensions/source/scanner/sanedlg.hxx b/extensions/source/scanner/sanedlg.hxx
index f91a260f1273..1bb2836d1eac 100644
--- a/extensions/source/scanner/sanedlg.hxx
+++ b/extensions/source/scanner/sanedlg.hxx
@@ -138,7 +138,7 @@ public:
virtual ~SaneDlg();
virtual short Execute() SAL_OVERRIDE;
- bool getDoScan();
+ bool getDoScan() { return doScan;}
};