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
75c4bff5
Kaydet (Commit)
75c4bff5
authored
Ara 05, 2013
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Get rid of DECLARE_STL_SET
Change-Id: Ie3e2fb6d9376e3b6e98bb17671b3e9e93cd69923
üst
31c65a12
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
DbAdminImpl.cxx
dbaccess/source/ui/dlg/DbAdminImpl.cxx
+5
-5
stl_types.hxx
include/comphelper/stl_types.hxx
+0
-4
No files found.
dbaccess/source/ui/dlg/DbAdminImpl.cxx
Dosyayı görüntüle @
75c4bff5
...
@@ -557,7 +557,7 @@ struct PropertyValueLess
...
@@ -557,7 +557,7 @@ struct PropertyValueLess
{
return
x
.
Name
<
y
.
Name
?
true
:
false
;
}
// construct prevents a MSVC6 warning
{
return
x
.
Name
<
y
.
Name
?
true
:
false
;
}
// construct prevents a MSVC6 warning
};
};
DECLARE_STL_SET
(
PropertyValue
,
PropertyValueLess
,
PropertyValueSet
)
;
typedef
std
::
set
<
PropertyValue
,
PropertyValueLess
>
PropertyValueSet
;
void
ODbDataSourceAdministrationHelper
::
translateProperties
(
const
Reference
<
XPropertySet
>&
_rxSource
,
SfxItemSet
&
_rDest
)
void
ODbDataSourceAdministrationHelper
::
translateProperties
(
const
Reference
<
XPropertySet
>&
_rxSource
,
SfxItemSet
&
_rDest
)
{
{
...
@@ -620,7 +620,7 @@ void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPr
...
@@ -620,7 +620,7 @@ void ODbDataSourceAdministrationHelper::translateProperties(const Reference< XPr
++
aIndirect
)
++
aIndirect
)
{
{
aSearchFor
.
Name
=
aIndirect
->
second
;
aSearchFor
.
Name
=
aIndirect
->
second
;
ConstPropertyValueSetI
terator
aInfoPos
=
aInfos
.
find
(
aSearchFor
);
PropertyValueSet
::
const_i
terator
aInfoPos
=
aInfos
.
find
(
aSearchFor
);
if
(
aInfos
.
end
()
!=
aInfoPos
)
if
(
aInfos
.
end
()
!=
aInfoPos
)
// the property is contained in the info sequence
// the property is contained in the info sequence
// -> transfer it into an item
// -> transfer it into an item
...
@@ -745,7 +745,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
...
@@ -745,7 +745,7 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
for
(
sal_Int32
i
=
0
;
i
<
nCount
;
++
i
,
++
pInfo
)
for
(
sal_Int32
i
=
0
;
i
<
nCount
;
++
i
,
++
pInfo
)
{
{
aSearchFor
.
Name
=
pInfo
->
Name
;
aSearchFor
.
Name
=
pInfo
->
Name
;
PropertyValueSet
I
terator
aOverwrittenSetting
=
aRelevantSettings
.
find
(
aSearchFor
);
PropertyValueSet
::
i
terator
aOverwrittenSetting
=
aRelevantSettings
.
find
(
aSearchFor
);
if
(
aRelevantSettings
.
end
()
!=
aOverwrittenSetting
)
if
(
aRelevantSettings
.
end
()
!=
aOverwrittenSetting
)
{
// the setting was present in the original sequence, and it is to be overwritten -> replace it
{
// the setting was present in the original sequence, and it is to be overwritten -> replace it
if
(
!::
comphelper
::
compare
(
pInfo
->
Value
,
aOverwrittenSetting
->
Value
)
)
if
(
!::
comphelper
::
compare
(
pInfo
->
Value
,
aOverwrittenSetting
->
Value
)
)
...
@@ -815,8 +815,8 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
...
@@ -815,8 +815,8 @@ void ODbDataSourceAdministrationHelper::fillDatasourceInfo(const SfxItemSet& _rS
sal_Int32
nOldLength
=
_rInfo
.
getLength
();
sal_Int32
nOldLength
=
_rInfo
.
getLength
();
_rInfo
.
realloc
(
nOldLength
+
aRelevantSettings
.
size
());
_rInfo
.
realloc
(
nOldLength
+
aRelevantSettings
.
size
());
PropertyValue
*
pAppendValues
=
_rInfo
.
getArray
()
+
nOldLength
;
PropertyValue
*
pAppendValues
=
_rInfo
.
getArray
()
+
nOldLength
;
ConstPropertyValueSetI
terator
aRelevantEnd
=
aRelevantSettings
.
end
();
PropertyValueSet
::
const_i
terator
aRelevantEnd
=
aRelevantSettings
.
end
();
for
(
ConstPropertyValueSetI
terator
aLoop
=
aRelevantSettings
.
begin
();
for
(
PropertyValueSet
::
const_i
terator
aLoop
=
aRelevantSettings
.
begin
();
aLoop
!=
aRelevantEnd
;
aLoop
!=
aRelevantEnd
;
++
aLoop
,
++
pAppendValues
++
aLoop
,
++
pAppendValues
)
)
...
...
include/comphelper/stl_types.hxx
Dosyayı görüntüle @
75c4bff5
...
@@ -264,10 +264,6 @@ OutputIter intersperse(
...
@@ -264,10 +264,6 @@ OutputIter intersperse(
typedef ::std::set< valuetype > classname; \
typedef ::std::set< valuetype > classname; \
DECLARE_STL_ITERATORS(classname) \
DECLARE_STL_ITERATORS(classname) \
#define DECLARE_STL_SET(valuetype, comparefct, classname) \
typedef ::std::set< valuetype, comparefct > classname; \
DECLARE_STL_ITERATORS(classname) \
#endif // INCLUDED_COMPHELPER_STL_TYPES_HXX
#endif // INCLUDED_COMPHELPER_STL_TYPES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* 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