summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 10:03:22 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-08-22 14:47:26 +0200
commit0e8e1c1881f3f00c76aa47aa1652f4cec343c256 (patch)
treeb1f00cd484e5a7231df997ba29bd7aa2623dfaed /svl
parent3355be0616c24c5e44b71e7623c4191ed9c69074 (diff)
loplugin:constmethod in svl
Change-Id: I9c16689dfeef11b77504106d22aceaaf9ec3df7d Reviewed-on: https://gerrit.libreoffice.org/77945 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/svdde/ddecli.cxx6
-rw-r--r--svl/source/svdde/ddeimp.hxx2
-rw-r--r--svl/unx/source/svdde/ddedummy.cxx6
3 files changed, 7 insertions, 7 deletions
diff --git a/svl/source/svdde/ddecli.cxx b/svl/source/svdde/ddecli.cxx
index 0f866689f8f5..29134e5a0767 100644
--- a/svl/source/svdde/ddecli.cxx
+++ b/svl/source/svdde/ddecli.cxx
@@ -216,12 +216,12 @@ bool DdeConnection::IsConnected()
}
}
-const OUString DdeConnection::GetServiceName()
+OUString DdeConnection::GetServiceName() const
{
return pService->toOUString();
}
-const OUString DdeConnection::GetTopicName()
+ OUString DdeConnection::GetTopicName() const
{
return pTopic->toOUString();
}
@@ -379,7 +379,7 @@ DdeExecute::DdeExecute( DdeConnection& d, const OUString& rData, long n )
nType = XTYP_EXECUTE;
}
-long DdeConnection::GetError()
+long DdeConnection::GetError() const
{
return pImp->nStatus;
}
diff --git a/svl/source/svdde/ddeimp.hxx b/svl/source/svdde/ddeimp.hxx
index 3e6cf02483b4..4c6a5ce872d8 100644
--- a/svl/source/svdde/ddeimp.hxx
+++ b/svl/source/svdde/ddeimp.hxx
@@ -68,7 +68,7 @@ public:
bool operator==( HSZ );
HSZ getHSZ();
- OUString toOUString() const { return m_aString; }
+ const OUString & toOUString() const { return m_aString; }
};
diff --git a/svl/unx/source/svdde/ddedummy.cxx b/svl/unx/source/svdde/ddedummy.cxx
index c505433a1e98..31cb24aa6c37 100644
--- a/svl/unx/source/svdde/ddedummy.cxx
+++ b/svl/unx/source/svdde/ddedummy.cxx
@@ -83,7 +83,7 @@ void const * DdeData::getData() const
struct DdeImp {};
-long DdeConnection::GetError()
+long DdeConnection::GetError() const
{
return 0L;
}
@@ -98,12 +98,12 @@ DdeConnection::~DdeConnection()
{
}
-const OUString DdeConnection::GetServiceName()
+OUString DdeConnection::GetServiceName() const
{
return OUString();
}
-const OUString DdeConnection::GetTopicName()
+OUString DdeConnection::GetTopicName() const
{
return OUString();
}