diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-25 13:30:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-26 03:04:34 +0200 |
commit | 3b13f813da6ad3bd3e4f9dc24b7deb84ea557063 (patch) | |
tree | a5893679db0c89053ce78a2a108670027837e240 /forms/source/xforms | |
parent | d6d04400095c2663ff5e1f58018d76df78121704 (diff) |
loplugin:constmethod in forms..fpicker
Change-Id: I1673e00be0a6c9d34ce02437bf68d929c56952f7
Reviewed-on: https://gerrit.libreoffice.org/79540
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'forms/source/xforms')
-rw-r--r-- | forms/source/xforms/binding.cxx | 8 | ||||
-rw-r--r-- | forms/source/xforms/binding.hxx | 8 | ||||
-rw-r--r-- | forms/source/xforms/convert.cxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/convert.hxx | 2 | ||||
-rw-r--r-- | forms/source/xforms/xpathlib/extension.hxx | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/forms/source/xforms/binding.cxx b/forms/source/xforms/binding.cxx index d2c1be56aa7b..a87c6b47596f 100644 --- a/forms/source/xforms/binding.cxx +++ b/forms/source/xforms/binding.cxx @@ -214,7 +214,7 @@ void Binding::deferNotifications( bool bDefer ) "deferred modifications not delivered?" ); } -bool Binding::isValid() +bool Binding::isValid() const { // TODO: determine whether node is suitable, not just whether it exists return maBindingExpression.getNode().is() && @@ -225,7 +225,7 @@ bool Binding::isValid() !maBindingExpression.getString().isEmpty() ) ); } -bool Binding::isUseful() +bool Binding::isUseful() const { // we are useful, if // 0) we don't have a model @@ -744,7 +744,7 @@ MIP Binding::getLocalMIP() const return aMIP; } -css::uno::Reference<css::xsd::XDataType> Binding::getDataType() +css::uno::Reference<css::xsd::XDataType> Binding::getDataType() const { OSL_ENSURE( getModel().is(), "need model" ); OSL_ENSURE( getModel()->getDataTypeRepository().is(), "need types" ); @@ -758,7 +758,7 @@ css::uno::Reference<css::xsd::XDataType> Binding::getDataType() : Reference<XDataType>( nullptr ); } -bool Binding::isValid_DataType() +bool Binding::isValid_DataType() const { Reference<XDataType> xDataType = getDataType(); return !xDataType.is() diff --git a/forms/source/xforms/binding.hxx b/forms/source/xforms/binding.hxx index a49d0e4567a6..5a3abe669a6f 100644 --- a/forms/source/xforms/binding.hxx +++ b/forms/source/xforms/binding.hxx @@ -246,11 +246,11 @@ public: void deferNotifications( bool ); /// is this binding valid? (are constraint, type and required MIPs ok?) - bool isValid(); + bool isValid() const; /// determine whether this binding currently performs a useful /// function, r whether is may be discarded - bool isUseful(); + bool isUseful() const; /// explain why binding is invalid OUString explainInvalid(); @@ -294,10 +294,10 @@ private: MIP getLocalMIP() const; /// get the data type that applies to this binding - css::uno::Reference<css::xsd::XDataType> getDataType(); + css::uno::Reference<css::xsd::XDataType> getDataType() const; /// determine whether binding is valid according to the given data type - bool isValid_DataType(); + bool isValid_DataType() const; /// explain validity of binding with respect to the given data type OUString explainInvalid_DataType(); diff --git a/forms/source/xforms/convert.cxx b/forms/source/xforms/convert.cxx index f00dd5e166db..c6b2f92871e1 100644 --- a/forms/source/xforms/convert.cxx +++ b/forms/source/xforms/convert.cxx @@ -297,7 +297,7 @@ bool Convert::hasType( const css::uno::Type& rType ) return maMap.find( rType ) != maMap.end(); } -css::uno::Sequence<css::uno::Type> Convert::getTypes() +css::uno::Sequence<css::uno::Type> Convert::getTypes() const { return comphelper::mapKeysToSequence( maMap ); } diff --git a/forms/source/xforms/convert.hxx b/forms/source/xforms/convert.hxx index c80bb9f62a9b..cba7611a9216 100644 --- a/forms/source/xforms/convert.hxx +++ b/forms/source/xforms/convert.hxx @@ -60,7 +60,7 @@ public: bool hasType( const css::uno::Type& ); /// get list of convertible types - css::uno::Sequence<css::uno::Type> getTypes(); + css::uno::Sequence<css::uno::Type> getTypes() const; /// convert any to XML representation OUString toXSD( const css::uno::Any& rAny ); diff --git a/forms/source/xforms/xpathlib/extension.hxx b/forms/source/xforms/xpathlib/extension.hxx index 906b4b70de28..5e83cbf64c9c 100644 --- a/forms/source/xforms/xpathlib/extension.hxx +++ b/forms/source/xforms/xpathlib/extension.hxx @@ -46,8 +46,8 @@ private: public: CLibxml2XFormsExtension() {} - const css::uno::Reference< css::xforms::XModel >& getModel() { return m_aModel;} - const css::uno::Reference< css::xml::dom::XNode >& getContextNode() { return m_aContextNode;} + const css::uno::Reference< css::xforms::XModel >& getModel() const { return m_aModel;} + const css::uno::Reference< css::xml::dom::XNode >& getContextNode() const { return m_aContextNode;} virtual css::xml::xpath::Libxml2ExtensionHandle SAL_CALL getLibxml2ExtensionHandle() override; virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any >& aSequence) override; |