cui/source/options/optcolor.cxx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
New commits: commit 7be6262439c8f34ae083a6964f8380c4ffeaeec8 Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Jan 14 13:46:38 2014 +0100 Use std::bitset Change-Id: Id816d1da328e83197e0b1b4641ed894b62f1c78b diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx index bf95ce8..580b9fe 100644 --- a/cui/source/options/optcolor.cxx +++ b/cui/source/options/optcolor.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <bitset> + #include <svtools/colorcfg.hxx> #include <svtools/extcolorcfg.hxx> #include <svtools/headbar.hxx> @@ -524,13 +528,12 @@ void ColorConfigWindow_Impl::setAllocation(const Size &rAllocation) void ColorConfigWindow_Impl::CreateEntries() { - std::vector<int> aModulesInstalled; + std::bitset<nGroupCount> aModulesInstalled; // creating group headers vChapters.reserve(nGroupCount); - aModulesInstalled.reserve(nGroupCount); for (unsigned i = 0; i != nGroupCount; ++i) { - aModulesInstalled.push_back(IsGroupVisible(vGroupInfo[i].eGroup)); + aModulesInstalled[i] = IsGroupVisible(vGroupInfo[i].eGroup); vChapters.push_back(boost::shared_ptr<Chapter>( new Chapter(get<FixedText>(vGroupInfo[i].pGroup), aModulesInstalled[i]))); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits