summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/filepicker/customcontrolcontainer.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/win32/filepicker/customcontrolcontainer.cxx')
-rw-r--r--fpicker/source/win32/filepicker/customcontrolcontainer.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/fpicker/source/win32/filepicker/customcontrolcontainer.cxx b/fpicker/source/win32/filepicker/customcontrolcontainer.cxx
index 24ea12111990..00bcbddb1479 100644
--- a/fpicker/source/win32/filepicker/customcontrolcontainer.cxx
+++ b/fpicker/source/win32/filepicker/customcontrolcontainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,20 +48,20 @@ namespace /* private */
{
aCustomControl->Align();
};
-
+
class CSetFontHelper
{
public:
- CSetFontHelper(HFONT hFont) :
+ CSetFontHelper(HFONT hFont) :
m_hFont(hFont)
{
}
-
+
void SAL_CALL operator()(CCustomControl* aCustomControl)
{
aCustomControl->SetFont(m_hFont);
}
-
+
private:
HFONT m_hFont;
};
@@ -95,7 +95,7 @@ void SAL_CALL CCustomControlContainer::Align()
void SAL_CALL CCustomControlContainer::SetFont(HFONT hFont)
{
CSetFontHelper aSetFontHelper(hFont);
-
+
std::for_each(
m_ControlContainer.begin(),
m_ControlContainer.end(),
@@ -105,7 +105,7 @@ void SAL_CALL CCustomControlContainer::SetFont(HFONT hFont)
//-----------------------------------
//
//-----------------------------------
-
+
void SAL_CALL CCustomControlContainer::AddControl(CCustomControl* aCustomControl)
{
m_ControlContainer.push_back(aCustomControl);
@@ -116,12 +116,12 @@ void SAL_CALL CCustomControlContainer::AddControl(CCustomControl* aCustomControl
//-----------------------------------
void SAL_CALL CCustomControlContainer::RemoveControl(CCustomControl* aCustomControl)
-{
+{
ControlContainer_t::iterator iter_end = m_ControlContainer.end();
- ControlContainer_t::iterator iter =
+ ControlContainer_t::iterator iter =
std::find(m_ControlContainer.begin(),iter_end,aCustomControl);
-
+
if (iter != iter_end)
{
delete *iter;