summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-06 10:29:56 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-06 10:37:50 +0100
commite35b4eab8246eec4acc266b99a5e623bb9a79968 (patch)
tree7b216a9618ac989025b47347925dbece86225a3c /dbaccess
parentc78f7d85ab72a447cabbeebcc76706b796c7308a (diff)
Get rid of DECLARE_STL_ITERATORS
Change-Id: I22148aa5336907939b37945e513c25a05b2b3776
Diffstat (limited to 'dbaccess')
-rw-r--r--dbaccess/source/ui/dlg/dbfindex.cxx22
-rw-r--r--dbaccess/source/ui/dlg/dbfindex.hxx5
2 files changed, 12 insertions, 15 deletions
diff --git a/dbaccess/source/ui/dlg/dbfindex.cxx b/dbaccess/source/ui/dlg/dbfindex.cxx
index b71b56ea332f..4522ad090dbb 100644
--- a/dbaccess/source/ui/dlg/dbfindex.cxx
+++ b/dbaccess/source/ui/dlg/dbfindex.cxx
@@ -85,7 +85,7 @@ ODbaseIndexDialog::~ODbaseIndexDialog()
DBG_DTOR(ODbaseIndexDialog,NULL);
}
-sal_Bool ODbaseIndexDialog::GetTable(const OUString& _rName, TableInfoListIterator& _rPosition)
+sal_Bool ODbaseIndexDialog::GetTable(const OUString& _rName, TableInfoList::iterator& _rPosition)
{
for ( _rPosition = m_aTableInfoList.begin();
_rPosition != m_aTableInfoList.end();
@@ -121,7 +121,7 @@ OTableIndex ODbaseIndexDialog::implRemoveIndex(const OUString& _rName, TableInde
sal_Int32 nPos = 0;
- TableIndexListIterator aSearch;
+ TableIndexList::iterator aSearch;
for ( aSearch = _rList.begin();
aSearch != _rList.end();
++aSearch, ++nPos
@@ -161,7 +161,7 @@ OTableIndex ODbaseIndexDialog::RemoveTableIndex( const OUString& _rTableName, co
OTableIndex aReturn;
// does the table exist ?
- TableInfoListIterator aTablePos;
+ TableInfoList::iterator aTablePos;
if (!GetTable(_rTableName, aTablePos))
return aReturn;
@@ -170,7 +170,7 @@ OTableIndex ODbaseIndexDialog::RemoveTableIndex( const OUString& _rTableName, co
void ODbaseIndexDialog::InsertTableIndex( const OUString& _rTableName, const OTableIndex& _rIndex)
{
- TableInfoListIterator aTablePos;
+ TableInfoList::iterator aTablePos;
if (!GetTable(_rTableName, aTablePos))
return;
@@ -181,7 +181,7 @@ IMPL_LINK( ODbaseIndexDialog, OKClickHdl, PushButton*, /*pButton*/ )
{
// let all tables write their INF file
- for ( ConstTableInfoListIterator aLoop = m_aTableInfoList.begin();
+ for ( TableInfoList::const_iterator aLoop = m_aTableInfoList.begin();
aLoop != m_aTableInfoList.end();
++aLoop
)
@@ -246,13 +246,13 @@ IMPL_LINK( ODbaseIndexDialog, OnListEntrySelected, ListBox*, /*NOTINTERESTEDIN*/
IMPL_LINK( ODbaseIndexDialog, TableSelectHdl, ComboBox*, pComboBox )
{
// search the table
- TableInfoListIterator aTablePos;
+ TableInfoList::iterator aTablePos;
if (!GetTable(pComboBox->GetText(), aTablePos))
return 0L;
// fill the listbox for the indexes
aLB_TableIndexes.Clear();
- for ( ConstTableIndexListIterator aLoop = aTablePos->aIndexList.begin();
+ for ( TableIndexList::const_iterator aLoop = aTablePos->aIndexList.begin();
aLoop != aTablePos->aIndexList.end();
++aLoop
)
@@ -388,7 +388,7 @@ void ODbaseIndexDialog::Init()
void ODbaseIndexDialog::SetCtrls()
{
// ComboBox tables
- for ( ConstTableInfoListIterator aLoop = m_aTableInfoList.begin();
+ for ( TableInfoList::const_iterator aLoop = m_aTableInfoList.begin();
aLoop != m_aTableInfoList.end();
++aLoop
)
@@ -401,7 +401,7 @@ void ODbaseIndexDialog::SetCtrls()
aCB_Tables.SetText( rTabInfo.aTableName );
// build ListBox of the table indices
- for ( ConstTableIndexListIterator aIndex = rTabInfo.aIndexList.begin();
+ for ( TableIndexList::const_iterator aIndex = rTabInfo.aIndexList.begin();
aIndex != rTabInfo.aIndexList.end();
++aIndex
)
@@ -412,7 +412,7 @@ void ODbaseIndexDialog::SetCtrls()
}
// ListBox of the free indices
- for ( ConstTableIndexListIterator aFree = m_aFreeIndexList.begin();
+ for ( TableIndexList::const_iterator aFree = m_aFreeIndexList.begin();
aFree != m_aFreeIndexList.end();
++aFree
)
@@ -467,7 +467,7 @@ void OTableInfo::WriteInfFile( const OUString& rDSN ) const
// now add all saved indices
sal_uInt16 nPos = 0;
- for ( ConstTableIndexListIterator aIndex = aIndexList.begin();
+ for ( TableIndexList::const_iterator aIndex = aIndexList.begin();
aIndex != aIndexList.end();
++aIndex, ++nPos
)
diff --git a/dbaccess/source/ui/dlg/dbfindex.hxx b/dbaccess/source/ui/dlg/dbfindex.hxx
index 74cb0627e723..6b4e0456ca1b 100644
--- a/dbaccess/source/ui/dlg/dbfindex.hxx
+++ b/dbaccess/source/ui/dlg/dbfindex.hxx
@@ -26,7 +26,6 @@
#include <vcl/lstbox.hxx>
#include <vcl/fixed.hxx>
#include <list>
-#include <comphelper/stl_types.hxx>
namespace dbaui
{
@@ -48,7 +47,6 @@ public:
};
typedef ::std::list< OTableIndex > TableIndexList;
-DECLARE_STL_ITERATORS(TableIndexList);
// OTableInfo
class ODbaseIndexDialog;
@@ -69,7 +67,6 @@ public:
};
typedef ::std::list< OTableInfo > TableInfoList;
-DECLARE_STL_ITERATORS(TableInfoList);
// IndexDialog
class ODbaseIndexDialog : public ModalDialog
@@ -110,7 +107,7 @@ protected:
void Init();
void SetCtrls();
- sal_Bool GetTable(const OUString& rName, TableInfoListIterator& _rPosition);
+ sal_Bool GetTable(const OUString& rName, TableInfoList::iterator& _rPosition);
OTableIndex implRemoveIndex(const OUString& _rName, TableIndexList& _rList, ListBox& _rDisplay, sal_Bool _bMustExist);
void implInsertIndex(const OTableIndex& _rIndex, TableIndexList& _rList, ListBox& _rDisplay);