summaryrefslogtreecommitdiff
path: root/oox/source/dump
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-05-09 21:14:18 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-05-10 09:40:00 +0000
commit22188da2410f90c2cc533b529314fae73f3b29fd (patch)
tree538a8dca94df7da75c6d0a60ab550f01627b8313 /oox/source/dump
parent9727c0e736dd880fff84848f153ca066da226237 (diff)
remove STATIC_ARRAY_END and usages
used in loops, rewrite to range based loop oox/source/drawingml/color.cxx has some mappings in plain arrays make them arrays of pairs which can be used in range based loops Change-Id: Ib6693197d890f595c27ca24b9f9b4e0763747f4c Reviewed-on: https://gerrit.libreoffice.org/24809 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'oox/source/dump')
-rw-r--r--oox/source/dump/dumperbase.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx
index 4a4c7e134140..e992d89b2a04 100644
--- a/oox/source/dump/dumperbase.cxx
+++ b/oox/source/dump/dumperbase.cxx
@@ -1873,8 +1873,8 @@ OUString StorageObjectBase::getSysFileName( const OUString& rStrmName, const OUS
// replace all characters reserved in file system
OUString aFileName = aBuffer.makeStringAndClear();
static const sal_Unicode spcReserved[] = { '/', '\\', ':', '*', '?', '<', '>', '|' };
- for( const sal_Unicode* pcChar = spcReserved; pcChar < STATIC_ARRAY_END( spcReserved ); ++pcChar )
- aFileName = aFileName.replace( *pcChar, '_' );
+ for(const sal_Unicode cChar : spcReserved)
+ aFileName = aFileName.replace(cChar, '_');
// build full path
return rSysOutPath + "/" + aFileName;