diff options
author | Arnaud Versini <arnaud.versini@gmail.com> | 2015-12-06 14:29:18 +0100 |
---|---|---|
committer | Arnaud Versini <arnaud.versini@libreoffice.org> | 2015-12-13 15:57:42 +0000 |
commit | 4df183e2c9c548ecdd6f3421d9ef043194aa0981 (patch) | |
tree | 73d1389ba1de313648325fe300b9f428bc5b1413 /basic/source/basmgr/basicmanagerrepository.cxx | |
parent | fdf122378d5dfa7160fa29eace026424b125e3e4 (diff) |
BASIC: use c++ foreach loops when possible.
Change-Id: Ia1c734e26da88010eef40a4375c423b0765f43ae
Reviewed-on: https://gerrit.libreoffice.org/20423
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Arnaud Versini <arnaud.versini@libreoffice.org>
Diffstat (limited to 'basic/source/basmgr/basicmanagerrepository.cxx')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 1b3ca26af456..de559e99c94b 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -427,10 +427,10 @@ namespace basic { // handle errors std::vector<BasicError>& aErrors = _out_rpBasicManager->GetErrors(); - for(std::vector<BasicError>::const_iterator i = aErrors.begin(); i != aErrors.end(); ++i) + for(const auto& rError : aErrors) { // show message to user - if ( ERRCODE_BUTTON_CANCEL == ErrorHandler::HandleError( i->GetErrorId() ) ) + if ( ERRCODE_BUTTON_CANCEL == ErrorHandler::HandleError( rError.GetErrorId() ) ) { // user wants to break loading of BASIC-manager delete _out_rpBasicManager; |