diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-05-10 13:13:05 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-05-10 13:15:37 +0300 |
commit | 08977ff115fca510f0152cf26ccf3df24640d8b4 (patch) | |
tree | 249915fafe142af4f1cb6ca35c9d5eb6a539115e /oox | |
parent | 347e46da399b8cc96d9dd8dbfd62120db473b555 (diff) |
loplugin:rangedforcopy
Loop variable passed by value, pass by reference instead.
Change-Id: I12d1cb639cbe7a5686a1854168362b85322fa2e5
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/drawingml/color.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/color.cxx b/oox/source/drawingml/color.cxx index 7d9b3590ad2c..774541fbc90a 100644 --- a/oox/source/drawingml/color.cxx +++ b/oox/source/drawingml/color.cxx @@ -121,7 +121,7 @@ PresetColorsPool::PresetColorsPool() : {XML_white, 0xFFFFFF}, {XML_whiteSmoke, 0xF5F5F5}, {XML_yellow, 0xFFFF00}, {XML_yellowGreen, 0x9ACD32} }; - for(auto const nEntry : spnDmlColors) + for(auto const& nEntry : spnDmlColors) maDmlColors[ static_cast< size_t >(nEntry.first) ] = nEntry.second; // predefined colors in VML (map XML token identifiers to RGB values) @@ -136,7 +136,7 @@ PresetColorsPool::PresetColorsPool() : {XML_silver, 0xC0C0C0}, {XML_teal, 0x008080}, {XML_white, 0xFFFFFF}, {XML_yellow, 0xFFFF00} }; - for(auto const nEntry : spnVmlColors) + for(auto const& nEntry : spnVmlColors) maVmlColors[ static_cast< size_t >(nEntry.first) ] = nEntry.second; } |