diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-14 08:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-14 08:17:32 +0200 |
commit | d366c9b20ec86f3fe521812a0c22def3bfd1f05e (patch) | |
tree | 4bd09438c8cd8f0dbcd0881fc923d56a0a721fc5 /svl/source/misc | |
parent | d2fa59e4025050c9b668ecff379d668f0db52639 (diff) |
remove unnecessary sal_Unicode casts in various places
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
Diffstat (limited to 'svl/source/misc')
-rw-r--r-- | svl/source/misc/ownlist.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/misc/ownlist.cxx b/svl/source/misc/ownlist.cxx index 988bd5c09269..2fae35cda205 100644 --- a/svl/source/misc/ownlist.cxx +++ b/svl/source/misc/ownlist.cxx @@ -30,12 +30,12 @@ static OUString parseString(const OUString & rCmd, sal_Int32 * pIndex) { OUString result; - if(rCmd[*pIndex] == sal_Unicode('\"')) { + if(rCmd[*pIndex] == '\"') { (*pIndex) ++; sal_Int32 begin = *pIndex; - while(*pIndex < rCmd.getLength() && rCmd[(*pIndex) ++] != sal_Unicode('\"')) ; + while(*pIndex < rCmd.getLength() && rCmd[(*pIndex) ++] != '\"') ; result = rCmd.copy(begin, *pIndex - begin - 1); } @@ -49,7 +49,7 @@ static OUString parseWord(const OUString & rCmd, sal_Int32 * pIndex) while(*pIndex < rCmd.getLength() && !isspace(sal::static_int_cast<int>(rCmd[*pIndex])) - && rCmd[*pIndex] != sal_Unicode('=')) + && rCmd[*pIndex] != '=') (*pIndex) ++; return rCmd.copy(begin, *pIndex - begin); @@ -83,16 +83,16 @@ bool SvCommandList::AppendCommands { eatSpace(rCmd, &index); - OUString name = (rCmd[index] == sal_Unicode('\"')) ? parseString(rCmd, &index) : parseWord(rCmd, &index); + OUString name = (rCmd[index] == '\"') ? parseString(rCmd, &index) : parseWord(rCmd, &index); eatSpace(rCmd, &index); OUString value; - if(index < rCmd.getLength() && rCmd[index] == sal_Unicode('=')) + if(index < rCmd.getLength() && rCmd[index] == '=') { index ++; eatSpace(rCmd, &index); - value = (rCmd[index] == sal_Unicode('\"')) ? parseString(rCmd, &index) : parseWord(rCmd, &index); + value = (rCmd[index] == '\"') ? parseString(rCmd, &index) : parseWord(rCmd, &index); } aCommandList.push_back( SvCommand(name, value)); |