diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 14:02:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-08-20 15:35:37 +0200 |
commit | 95dd183c41c52aa0ed9b5223ae7584f486103a78 (patch) | |
tree | 87b0221cf5ddfc69dc054820cac309e63230c2fb /solenv | |
parent | 8d54827762e2a6702a16b67724a6a5f393d72598 (diff) |
loplugin:constvars in solenv..svtools
Change-Id: Ieb0116321bbddd804db6d1789ea3521c5b220840
Reviewed-on: https://gerrit.libreoffice.org/77807
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuildtojson/gbuildtojson.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/solenv/gbuildtojson/gbuildtojson.cxx b/solenv/gbuildtojson/gbuildtojson.cxx index 00bc6ee8abb8..8061b801cd76 100644 --- a/solenv/gbuildtojson/gbuildtojson.cxx +++ b/solenv/gbuildtojson/gbuildtojson.cxx @@ -41,7 +41,7 @@ int main(int argc, char** argv) } cout << "{"; bool first(true); - for(auto& varandfile : vartofile) + for(const auto& varandfile : vartofile) { if(first) first =false; @@ -57,7 +57,7 @@ int main(int argc, char** argv) filestream.close(); (void)remove(varandfile.second.c_str()); string escapedcontents; - for(auto& c : contents.str()) + for(const auto& c : contents.str()) { if(c=='\\') escapedcontents += "\\\\"; |