summaryrefslogtreecommitdiff
path: root/sw/source/core/access
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-01-08 19:54:55 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-01-09 13:01:49 +0100
commitac396f2f6b058ddff8c394443669b8c5d8b97b71 (patch)
treefc5120838a69ced58c3cd2333718ffeb6d4adf67 /sw/source/core/access
parent0c20b68149797c8b0779534a8e0cb9045085d451 (diff)
fix coverity parse errors
Change-Id: I3a1179947704452e3ffec02be59d0f7bf0b75ab0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109017 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/core/access')
-rw-r--r--sw/source/core/access/acccell.cxx2
-rw-r--r--sw/source/core/access/acccontext.hxx2
-rw-r--r--sw/source/core/access/accdoc.cxx4
-rw-r--r--sw/source/core/access/accembedded.cxx2
-rw-r--r--sw/source/core/access/accfootnote.cxx4
-rw-r--r--sw/source/core/access/accheaderfooter.cxx4
-rw-r--r--sw/source/core/access/accpage.cxx2
-rw-r--r--sw/source/core/access/accpara.cxx4
-rw-r--r--sw/source/core/access/accpreview.cxx2
-rw-r--r--sw/source/core/access/acctable.cxx2
10 files changed, 14 insertions, 14 deletions
diff --git a/sw/source/core/access/acccell.cxx b/sw/source/core/access/acccell.cxx
index 154f4d0fe85f..9d2aa207cfc8 100644
--- a/sw/source/core/access/acccell.cxx
+++ b/sw/source/core/access/acccell.cxx
@@ -50,7 +50,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
using namespace sw::access;
-const OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleCellView";
+constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleCellView";
bool SwAccessibleCell::IsSelected()
{
diff --git a/sw/source/core/access/acccontext.hxx b/sw/source/core/access/acccontext.hxx
index 59c4df3962b3..137726a43ed0 100644
--- a/sw/source/core/access/acccontext.hxx
+++ b/sw/source/core/access/acccontext.hxx
@@ -40,7 +40,7 @@ namespace accessibility {
class AccessibleShape;
}
-inline const OUStringLiteral sAccessibleServiceName = u"com.sun.star.accessibility.Accessible";
+inline constexpr OUStringLiteral sAccessibleServiceName = u"com.sun.star.accessibility.Accessible";
class SwAccessibleContext :
public ::cppu::WeakImplHelper<
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx
index 852e537da3ad..a1661bb468d5 100644
--- a/sw/source/core/access/accdoc.cxx
+++ b/sw/source/core/access/accdoc.cxx
@@ -52,8 +52,8 @@
#include <dview.hxx>
#include <dcontact.hxx>
#include <svx/svdmark.hxx>
-const OUStringLiteral sServiceName = u"com.sun.star.text.AccessibleTextDocumentView";
-const OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleDocumentView";
+constexpr OUStringLiteral sServiceName = u"com.sun.star.text.AccessibleTextDocumentView";
+constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleDocumentView";
using namespace ::com::sun::star;
using namespace ::com::sun::star::accessibility;
diff --git a/sw/source/core/access/accembedded.cxx b/sw/source/core/access/accembedded.cxx
index 6ec441bcef05..7f1b59ffc6c6 100644
--- a/sw/source/core/access/accembedded.cxx
+++ b/sw/source/core/access/accembedded.cxx
@@ -31,7 +31,7 @@ using namespace ::com::sun::star;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::accessibility;
-const OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleEmbeddedObject";
+constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleEmbeddedObject";
SwAccessibleEmbeddedObject::SwAccessibleEmbeddedObject(
std::shared_ptr<SwAccessibleMap> const& pInitMap,
diff --git a/sw/source/core/access/accfootnote.cxx b/sw/source/core/access/accfootnote.cxx
index 815f26899140..43d8a2b6e10c 100644
--- a/sw/source/core/access/accfootnote.cxx
+++ b/sw/source/core/access/accfootnote.cxx
@@ -33,9 +33,9 @@ using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::accessibility;
-const OUStringLiteral sImplementationNameFootnote
+constexpr OUStringLiteral sImplementationNameFootnote
= u"com.sun.star.comp.Writer.SwAccessibleFootnoteView";
-const OUStringLiteral sImplementationNameEndnote
+constexpr OUStringLiteral sImplementationNameEndnote
= u"com.sun.star.comp.Writer.SwAccessibleEndnoteView";
SwAccessibleFootnote::SwAccessibleFootnote(
diff --git a/sw/source/core/access/accheaderfooter.cxx b/sw/source/core/access/accheaderfooter.cxx
index aa41ac4bd795..bf1f8bf6d2ad 100644
--- a/sw/source/core/access/accheaderfooter.cxx
+++ b/sw/source/core/access/accheaderfooter.cxx
@@ -29,9 +29,9 @@ using namespace ::com::sun::star::lang;
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::accessibility;
-const OUStringLiteral sImplementationNameHeader
+constexpr OUStringLiteral sImplementationNameHeader
= u"com.sun.star.comp.Writer.SwAccessibleHeaderView";
-const OUStringLiteral sImplementationNameFooter
+constexpr OUStringLiteral sImplementationNameFooter
= u"com.sun.star.comp.Writer.SwAccessibleFooterView";
SwAccessibleHeaderFooter::SwAccessibleHeaderFooter(
diff --git a/sw/source/core/access/accpage.cxx b/sw/source/core/access/accpage.cxx
index a01f44ec4f60..2c5d1513a05d 100644
--- a/sw/source/core/access/accpage.cxx
+++ b/sw/source/core/access/accpage.cxx
@@ -32,7 +32,7 @@ using namespace ::com::sun::star::accessibility;
using uno::Sequence;
-const OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessiblePageView";
+constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessiblePageView";
bool SwAccessiblePage::IsSelected()
{
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx
index 49291ed0c44a..29bd4be8a1e0 100644
--- a/sw/source/core/access/accpara.cxx
+++ b/sw/source/core/access/accpara.cxx
@@ -111,8 +111,8 @@ namespace com::sun::star::text {
class XText;
}
-const OUStringLiteral sServiceName = u"com.sun.star.text.AccessibleParagraphView";
-const OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleParagraphView";
+constexpr OUStringLiteral sServiceName = u"com.sun.star.text.AccessibleParagraphView";
+constexpr OUStringLiteral sImplementationName = u"com.sun.star.comp.Writer.SwAccessibleParagraphView";
OUString const & SwAccessibleParagraph::GetString()
{
diff --git a/sw/source/core/access/accpreview.cxx b/sw/source/core/access/accpreview.cxx
index 75ad890d590a..503cc543ece9 100644
--- a/sw/source/core/access/accpreview.cxx
+++ b/sw/source/core/access/accpreview.cxx
@@ -22,7 +22,7 @@
#include <strings.hrc>
#include "accpreview.hxx"
-const OUStringLiteral sImplementationName
+constexpr OUStringLiteral sImplementationName
= u"com.sun.star.comp.Writer.SwAccessibleDocumentPageView";
using ::com::sun::star::uno::Sequence;
diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx
index 1c731d684b29..c9de6594f484 100644
--- a/sw/source/core/access/acctable.cxx
+++ b/sw/source/core/access/acctable.cxx
@@ -1731,7 +1731,7 @@ uno::Reference< XAccessibleTable >
OUString SAL_CALL SwAccessibleTableColHeaders::getImplementationName()
{
- static const OUStringLiteral sImplName
+ static constexpr OUStringLiteral sImplName
= u"com.sun.star.comp.Writer.SwAccessibleTableColumnHeadersView";
return sImplName;
}