From 20f9bf58ef0326236a699cdd45da20d1e997359b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 28 Apr 2017 17:57:55 +0200 Subject: loplugin:salunicodeliteral: cui Change-Id: I06e94b663402b65b7487b314cc71217e43f2de4e --- cui/source/options/optaboutconfig.cxx | 2 +- cui/source/options/optgenrl.cxx | 2 +- cui/source/tabpages/numpages.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'cui') diff --git a/cui/source/options/optaboutconfig.cxx b/cui/source/options/optaboutconfig.cxx index 3eee7ba6cf89..7e8c850ff732 100644 --- a/cui/source/options/optaboutconfig.cxx +++ b/cui/source/options/optaboutconfig.cxx @@ -531,7 +531,7 @@ std::vector< OUString > CuiAboutConfigTabPage::commaStringToSequence( const OUSt sal_Int32 index = 0; do { - OUString word = rCommaSepString.getToken(0, static_cast (','), index); + OUString word = rCommaSepString.getToken(0, u',', index); word = word.trim(); if( !word.isEmpty()) tempVector.push_back(word); diff --git a/cui/source/options/optgenrl.cxx b/cui/source/options/optgenrl.cxx index 8ea85be28857..991041917020 100644 --- a/cui/source/options/optgenrl.cxx +++ b/cui/source/options/optgenrl.cxx @@ -360,7 +360,7 @@ IMPL_LINK( SvxGeneralTabPage, ModifyHdl_Impl, Edit&, rEdit, void ) sShortName += " "; OUString sName = rEdit.GetText(); OUString sLetter = sName.isEmpty() - ? OUString(sal_Unicode(' ')) : sName.copy(0, 1); + ? OUString(u' ') : sName.copy(0, 1); rShortName.pEdit->SetText(sShortName.replaceAt(nField, 1, sLetter).trim()); } } diff --git a/cui/source/tabpages/numpages.cxx b/cui/source/tabpages/numpages.cxx index 6dc34355bcf6..441b143c69c9 100644 --- a/cui/source/tabpages/numpages.cxx +++ b/cui/source/tabpages/numpages.cxx @@ -100,8 +100,8 @@ using namespace css::style; #define MAX_BMP_WIDTH 16 #define MAX_BMP_HEIGHT 16 -#define SEARCHPATH_DELIMITER ((sal_Unicode)';') -#define SEARCHFILENAME_DELIMITER ((sal_Unicode)'/') +#define SEARCHPATH_DELIMITER u';' +#define SEARCHFILENAME_DELIMITER u'/' static bool bLastRelative = false; -- cgit