diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-11 22:02:39 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2011-02-11 22:02:53 +0100 |
commit | b33eb8b52947f3a21df3b9ef564fdfd51fb99a01 (patch) | |
tree | 630cc034f4ec63e3aa375695ca3eb4621dbbac72 /desktop | |
parent | 7be259b3719e6eaa71566534574b997ec8f1a153 (diff) |
std::fill_n does not return iterator
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/pkgchk/unopkg/unopkg_app.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/desktop/source/pkgchk/unopkg/unopkg_app.cxx b/desktop/source/pkgchk/unopkg/unopkg_app.cxx index 743790f73cfd..53655061ac20 100644 --- a/desktop/source/pkgchk/unopkg/unopkg_app.cxx +++ b/desktop/source/pkgchk/unopkg/unopkg_app.cxx @@ -500,10 +500,12 @@ extern "C" int unopkg_main() //Now prepare the vector which tells what extension has an //unaccepted license vecUnaccepted.resize(vecExtUnaccepted.size() + vec_packages.size()); - ::std::vector<bool>::iterator i_unaccepted = - ::std::fill_n(vecUnaccepted.begin(), - vecExtUnaccepted.size(), true); - ::std::fill_n(i_unaccepted, vec_packages.size(), false); + ::std::vector<bool>::iterator i_unaccepted = vecUnaccepted.begin(); + ::std::vector<bool>::size_type i = 0; + for (; i < vecExtUnaccepted.size(); i++) + *i_unaccepted++ = true; + for (; i < vec_packages.size(); i++) + *i_unaccepted++ = false; dp_misc::writeConsole( OUSTR("All deployed ") + repository + OUSTR(" extensions:\n\n")); |