Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
e35b4eab
Kaydet (Commit)
e35b4eab
authored
Ara 06, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of DECLARE_STL_ITERATORS
Change-Id: I22148aa5336907939b37945e513c25a05b2b3776
üst
c78f7d85
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
23 deletions
+12
-23
dbfindex.cxx
dbaccess/source/ui/dlg/dbfindex.cxx
+11
-11
dbfindex.hxx
dbaccess/source/ui/dlg/dbfindex.hxx
+1
-4
stl_types.hxx
include/comphelper/stl_types.hxx
+0
-8
No files found.
dbaccess/source/ui/dlg/dbfindex.cxx
Dosyayı görüntüle @
e35b4eab
...
...
@@ -85,7 +85,7 @@ ODbaseIndexDialog::~ODbaseIndexDialog()
DBG_DTOR
(
ODbaseIndexDialog
,
NULL
);
}
sal_Bool
ODbaseIndexDialog
::
GetTable
(
const
OUString
&
_rName
,
TableInfoList
I
terator
&
_rPosition
)
sal_Bool
ODbaseIndexDialog
::
GetTable
(
const
OUString
&
_rName
,
TableInfoList
::
i
terator
&
_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
;
TableIndexList
I
terator
aSearch
;
TableIndexList
::
i
terator
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 ?
TableInfoList
I
terator
aTablePos
;
TableInfoList
::
i
terator
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
)
{
TableInfoList
I
terator
aTablePos
;
TableInfoList
::
i
terator
aTablePos
;
if
(
!
GetTable
(
_rTableName
,
aTablePos
))
return
;
...
...
@@ -181,7 +181,7 @@ IMPL_LINK( ODbaseIndexDialog, OKClickHdl, PushButton*, /*pButton*/ )
{
// let all tables write their INF file
for
(
ConstTableInfoListI
terator
aLoop
=
m_aTableInfoList
.
begin
();
for
(
TableInfoList
::
const_i
terator
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
TableInfoList
I
terator
aTablePos
;
TableInfoList
::
i
terator
aTablePos
;
if
(
!
GetTable
(
pComboBox
->
GetText
(),
aTablePos
))
return
0L
;
// fill the listbox for the indexes
aLB_TableIndexes
.
Clear
();
for
(
ConstTableIndexListI
terator
aLoop
=
aTablePos
->
aIndexList
.
begin
();
for
(
TableIndexList
::
const_i
terator
aLoop
=
aTablePos
->
aIndexList
.
begin
();
aLoop
!=
aTablePos
->
aIndexList
.
end
();
++
aLoop
)
...
...
@@ -388,7 +388,7 @@ void ODbaseIndexDialog::Init()
void
ODbaseIndexDialog
::
SetCtrls
()
{
// ComboBox tables
for
(
ConstTableInfoListI
terator
aLoop
=
m_aTableInfoList
.
begin
();
for
(
TableInfoList
::
const_i
terator
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
(
ConstTableIndexListI
terator
aIndex
=
rTabInfo
.
aIndexList
.
begin
();
for
(
TableIndexList
::
const_i
terator
aIndex
=
rTabInfo
.
aIndexList
.
begin
();
aIndex
!=
rTabInfo
.
aIndexList
.
end
();
++
aIndex
)
...
...
@@ -412,7 +412,7 @@ void ODbaseIndexDialog::SetCtrls()
}
// ListBox of the free indices
for
(
ConstTableIndexListI
terator
aFree
=
m_aFreeIndexList
.
begin
();
for
(
TableIndexList
::
const_i
terator
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
(
ConstTableIndexListI
terator
aIndex
=
aIndexList
.
begin
();
for
(
TableIndexList
::
const_i
terator
aIndex
=
aIndexList
.
begin
();
aIndex
!=
aIndexList
.
end
();
++
aIndex
,
++
nPos
)
...
...
dbaccess/source/ui/dlg/dbfindex.hxx
Dosyayı görüntüle @
e35b4eab
...
...
@@ -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
,
TableInfoList
I
terator
&
_rPosition
);
sal_Bool
GetTable
(
const
OUString
&
rName
,
TableInfoList
::
i
terator
&
_rPosition
);
OTableIndex
implRemoveIndex
(
const
OUString
&
_rName
,
TableIndexList
&
_rList
,
ListBox
&
_rDisplay
,
sal_Bool
_bMustExist
);
void
implInsertIndex
(
const
OTableIndex
&
_rIndex
,
TableIndexList
&
_rList
,
ListBox
&
_rDisplay
);
...
...
include/comphelper/stl_types.hxx
Dosyayı görüntüle @
e35b4eab
...
...
@@ -228,14 +228,6 @@ OutputIter intersperse(
}
//... namespace comphelper ................................................
//==================================================================
// consistently defining stl-types
//==================================================================
#define DECLARE_STL_ITERATORS(classname) \
typedef classname::iterator classname##Iterator; \
typedef classname::const_iterator Const##classname##Iterator \
#endif // INCLUDED_COMPHELPER_STL_TYPES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment