diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 17:55:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 18:26:56 +0200 |
commit | 106e35108b8b7b9ed7c155ac5bdbedeff38eaf79 (patch) | |
tree | ede78222d735525b3b38ad2a99bdc13b53e1ef00 /sfx2 | |
parent | 740cf511036cdf881a521a79218d3dcc29422db3 (diff) |
loplugin:salunicodeliteral: sfx2
Change-Id: Iff0e8d0ae884cb45e18e0a84b8fdf6e7fcb5f20a
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/unoctitm.cxx | 2 | ||||
-rw-r--r-- | sfx2/source/doc/DocumentMetadataAccess.cxx | 6 | ||||
-rw-r--r-- | sfx2/source/doc/SfxDocumentMetaData.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index acdf7a3b779d..17a4e5d3c736 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -989,7 +989,7 @@ static void InterceptLOKStateChangeEvent(const SfxViewFrame* pViewFrame, const c OUStringBuffer aBuffer; aBuffer.append(aEvent.FeatureURL.Complete); - aBuffer.append(static_cast<sal_Unicode>('=')); + aBuffer.append(u'='); if (aEvent.FeatureURL.Path == "Bold" || aEvent.FeatureURL.Path == "CenterPara" || diff --git a/sfx2/source/doc/DocumentMetadataAccess.cxx b/sfx2/source/doc/DocumentMetadataAccess.cxx index fd3a14808ea9..2b4f3535dfb6 100644 --- a/sfx2/source/doc/DocumentMetadataAccess.cxx +++ b/sfx2/source/doc/DocumentMetadataAccess.cxx @@ -222,7 +222,7 @@ static bool isFileNameValid(const OUString & i_rFileName) sal_Int32 idx(0); do { const OUString segment( - i_rFileName.getToken(0, static_cast<sal_Unicode> ('/'), idx) ); + i_rFileName.getToken(0, u'/', idx) ); if (segment.isEmpty() || // no empty segments segment == "." || // no . segments segment == ".." || // no .. segments @@ -238,7 +238,7 @@ static bool splitPath(OUString const & i_rPath, OUString & o_rDir, OUString& o_rRest) { - const sal_Int32 idx(i_rPath.indexOf(static_cast<sal_Unicode>('/'))); + const sal_Int32 idx(i_rPath.indexOf(u'/')); if (idx < 0 || idx >= i_rPath.getLength()) { o_rDir.clear(); o_rRest = i_rPath; @@ -257,7 +257,7 @@ static bool splitXmlId(OUString const & i_XmlId, OUString & o_StreamName, OUString& o_Idref ) { - const sal_Int32 idx(i_XmlId.indexOf(static_cast<sal_Unicode>('#'))); + const sal_Int32 idx(i_XmlId.indexOf(u'#')); if ((idx <= 0) || (idx >= i_XmlId.getLength() - 1)) { return false; } else { diff --git a/sfx2/source/doc/SfxDocumentMetaData.cxx b/sfx2/source/doc/SfxDocumentMetaData.cxx index 06fddd7f3f49..df7574634f79 100644 --- a/sfx2/source/doc/SfxDocumentMetaData.cxx +++ b/sfx2/source/doc/SfxDocumentMetaData.cxx @@ -424,7 +424,7 @@ bool isValidDateTime(const css::util::DateTime & i_rDateTime) std::pair< OUString, OUString > SAL_CALL getQualifier(const char* i_name) { OUString nm = OUString::createFromAscii(i_name); - sal_Int32 ix = nm.indexOf(static_cast<sal_Unicode> (':')); + sal_Int32 ix = nm.indexOf(u':'); if (ix == -1) { return std::make_pair(OUString(), nm); } else { |