summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-14 13:46:38 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-14 13:46:46 +0100
commit7be6262439c8f34ae083a6964f8380c4ffeaeec8 (patch)
tree88546a98f60ae9e59819aadac3926080ef759a07 /cui
parent3b614521b6d3f6f238a73053c7cb40b42e19287b (diff)
Use std::bitset
Change-Id: Id816d1da328e83197e0b1b4641ed894b62f1c78b
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optcolor.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/cui/source/options/optcolor.cxx b/cui/source/options/optcolor.cxx
index bf95ce838803..580b9fe3639e 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])));
}