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
b21661ce
Kaydet (Commit)
b21661ce
authored
May 08, 2011
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Some cppcheck cleaning
üst
61b5d347
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
26 deletions
+26
-26
MenuItemInfo.cxx
framework/source/lomenubar/MenuItemInfo.cxx
+5
-5
MenuItemInfo.hxx
framework/source/lomenubar/MenuItemInfo.hxx
+5
-5
stringresource.cxx
scripting/source/stringresource/stringresource.cxx
+13
-13
lnkbase2.cxx
sfx2/source/appl/lnkbase2.cxx
+1
-1
filtergrouping.cxx
sfx2/source/dialog/filtergrouping.cxx
+2
-2
No files found.
framework/source/lomenubar/MenuItemInfo.cxx
Dosyayı görüntüle @
b21661ce
...
@@ -73,31 +73,31 @@ MenuItemInfo::setVisible (gboolean is_visible)
...
@@ -73,31 +73,31 @@ MenuItemInfo::setVisible (gboolean is_visible)
//Getters
//Getters
gchar
*
gchar
*
MenuItemInfo
::
getLabel
()
MenuItemInfo
::
getLabel
const
()
{
{
return
m_label
;
return
m_label
;
}
}
gboolean
gboolean
MenuItemInfo
::
getEnabled
()
MenuItemInfo
::
getEnabled
const
()
{
{
return
m_is_enabled
;
return
m_is_enabled
;
}
}
gint
gint
MenuItemInfo
::
getCheckState
()
MenuItemInfo
::
getCheckState
const
()
{
{
return
m_check_state
;
return
m_check_state
;
}
}
const
gchar
*
const
gchar
*
MenuItemInfo
::
getCheckType
()
MenuItemInfo
::
getCheckType
const
()
{
{
return
m_check_type
;
return
m_check_type
;
}
}
gboolean
gboolean
MenuItemInfo
::
getVisible
()
MenuItemInfo
::
getVisible
const
()
{
{
return
m_is_visible
;
return
m_is_visible
;
}
}
framework/source/lomenubar/MenuItemInfo.hxx
Dosyayı görüntüle @
b21661ce
...
@@ -45,10 +45,10 @@ class MenuItemInfo {
...
@@ -45,10 +45,10 @@ class MenuItemInfo {
void
setVisible
(
gboolean
is_visible
);
void
setVisible
(
gboolean
is_visible
);
//Getters
//Getters
gchar
*
getLabel
();
gchar
*
getLabel
const
();
gboolean
getEnabled
();
gboolean
getEnabled
const
();
gint
getCheckState
();
gint
getCheckState
const
();
const
gchar
*
getCheckType
();
const
gchar
*
getCheckType
const
();
gboolean
getVisible
();
gboolean
getVisible
const
();
};
};
#endif // __MENU_ITEM_INFO_HXX__
#endif // __MENU_ITEM_INFO_HXX__
scripting/source/stringresource/stringresource.cxx
Dosyayı görüntüle @
b21661ce
...
@@ -123,13 +123,13 @@ StringResourceImpl::StringResourceImpl( const Reference< XComponentContext >& rx
...
@@ -123,13 +123,13 @@ StringResourceImpl::StringResourceImpl( const Reference< XComponentContext >& rx
StringResourceImpl
::~
StringResourceImpl
()
StringResourceImpl
::~
StringResourceImpl
()
{
{
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
delete
pLocaleItem
;
delete
pLocaleItem
;
}
}
for
(
LocaleItemVectorIt
it
=
m_aDeletedLocaleItemVector
.
begin
();
it
!=
m_aDeletedLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorIt
it
=
m_aDeletedLocaleItemVector
.
begin
();
it
!=
m_aDeletedLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
delete
pLocaleItem
;
delete
pLocaleItem
;
...
@@ -326,7 +326,7 @@ Sequence< Locale > StringResourceImpl::getLocales( )
...
@@ -326,7 +326,7 @@ Sequence< Locale > StringResourceImpl::getLocales( )
Sequence
<
Locale
>
aLocalSeq
(
nSize
);
Sequence
<
Locale
>
aLocalSeq
(
nSize
);
Locale
*
pLocales
=
aLocalSeq
.
getArray
();
Locale
*
pLocales
=
aLocalSeq
.
getArray
();
int
iTarget
=
0
;
int
iTarget
=
0
;
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
pLocales
[
iTarget
]
=
pLocaleItem
->
m_locale
;
pLocales
[
iTarget
]
=
pLocaleItem
->
m_locale
;
...
@@ -566,7 +566,7 @@ void StringResourceImpl::removeLocale( const Locale& locale )
...
@@ -566,7 +566,7 @@ void StringResourceImpl::removeLocale( const Locale& locale )
if
(
m_pCurrentLocaleItem
==
pRemoveItem
||
if
(
m_pCurrentLocaleItem
==
pRemoveItem
||
m_pDefaultLocaleItem
==
pRemoveItem
)
m_pDefaultLocaleItem
==
pRemoveItem
)
{
{
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
pRemoveItem
)
if
(
pLocaleItem
!=
pRemoveItem
)
...
@@ -586,7 +586,7 @@ void StringResourceImpl::removeLocale( const Locale& locale )
...
@@ -586,7 +586,7 @@ void StringResourceImpl::removeLocale( const Locale& locale )
}
}
}
}
}
}
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
==
pRemoveItem
)
if
(
pLocaleItem
==
pRemoveItem
)
...
@@ -666,7 +666,7 @@ LocaleItem* StringResourceImpl::getItemForLocale
...
@@ -666,7 +666,7 @@ LocaleItem* StringResourceImpl::getItemForLocale
LocaleItem
*
pRetItem
=
NULL
;
LocaleItem
*
pRetItem
=
NULL
;
// Search for locale
// Search for locale
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
)
if
(
pLocaleItem
)
...
@@ -699,7 +699,7 @@ LocaleItem* StringResourceImpl::getClosestMatchItemForLocale( const Locale& loca
...
@@ -699,7 +699,7 @@ LocaleItem* StringResourceImpl::getClosestMatchItemForLocale( const Locale& loca
// Search for locale
// Search for locale
for
(
sal_Int32
iPass
=
0
;
iPass
<=
2
;
++
iPass
)
for
(
sal_Int32
iPass
=
0
;
iPass
<=
2
;
++
iPass
)
{
{
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
)
if
(
pLocaleItem
)
...
@@ -1058,7 +1058,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
...
@@ -1058,7 +1058,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
}
}
}
}
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
NULL
&&
(
bStoreAll
||
pLocaleItem
->
m_bModified
)
&&
if
(
pLocaleItem
!=
NULL
&&
(
bStoreAll
||
pLocaleItem
->
m_bModified
)
&&
...
@@ -1097,7 +1097,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
...
@@ -1097,7 +1097,7 @@ void StringResourcePersistenceImpl::implStoreAtStorage
if
(
bUsedForStore
)
if
(
bUsedForStore
)
{
{
for
(
LocaleItemVectorIt
it
=
m_aChangedDefaultLocaleVector
.
begin
();
for
(
LocaleItemVectorIt
it
=
m_aChangedDefaultLocaleVector
.
begin
();
it
!=
m_aChangedDefaultLocaleVector
.
end
();
it
++
)
it
!=
m_aChangedDefaultLocaleVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
NULL
)
if
(
pLocaleItem
!=
NULL
)
...
@@ -1196,7 +1196,7 @@ void StringResourcePersistenceImpl::implKillChangedDefaultFiles
...
@@ -1196,7 +1196,7 @@ void StringResourcePersistenceImpl::implKillChangedDefaultFiles
{
{
// Delete files for changed defaults
// Delete files for changed defaults
for
(
LocaleItemVectorIt
it
=
m_aChangedDefaultLocaleVector
.
begin
();
for
(
LocaleItemVectorIt
it
=
m_aChangedDefaultLocaleVector
.
begin
();
it
!=
m_aChangedDefaultLocaleVector
.
end
();
it
++
)
it
!=
m_aChangedDefaultLocaleVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
NULL
)
if
(
pLocaleItem
!=
NULL
)
...
@@ -1228,7 +1228,7 @@ void StringResourcePersistenceImpl::implStoreAtLocation
...
@@ -1228,7 +1228,7 @@ void StringResourcePersistenceImpl::implStoreAtLocation
if
(
bUsedForStore
||
bKillAll
)
if
(
bUsedForStore
||
bKillAll
)
implKillRemovedLocaleFiles
(
Location
,
aNameBase
,
xFileAccess
);
implKillRemovedLocaleFiles
(
Location
,
aNameBase
,
xFileAccess
);
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
NULL
&&
(
bStoreAll
||
bKillAll
||
pLocaleItem
->
m_bModified
)
&&
if
(
pLocaleItem
!=
NULL
&&
(
bStoreAll
||
bKillAll
||
pLocaleItem
->
m_bModified
)
&&
...
@@ -1431,7 +1431,7 @@ Sequence< sal_Int8 > StringResourcePersistenceImpl::exportBinary( )
...
@@ -1431,7 +1431,7 @@ Sequence< sal_Int8 > StringResourcePersistenceImpl::exportBinary( )
sal_Int32
iLocale
=
0
;
sal_Int32
iLocale
=
0
;
sal_Int32
iDefault
=
0
;
sal_Int32
iDefault
=
0
;
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
for
(
LocaleItemVectorConstIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
,
iLocale
++
)
it
!=
m_aLocaleItemVector
.
end
();
++
it
,
++
iLocale
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
NULL
&&
loadLocale
(
pLocaleItem
)
)
if
(
pLocaleItem
!=
NULL
&&
loadLocale
(
pLocaleItem
)
)
...
@@ -1740,7 +1740,7 @@ bool checkNamingSceme( const ::rtl::OUString& aName, const ::rtl::OUString& aNam
...
@@ -1740,7 +1740,7 @@ bool checkNamingSceme( const ::rtl::OUString& aName, const ::rtl::OUString& aNam
void
StringResourcePersistenceImpl
::
implLoadAllLocales
(
void
)
void
StringResourcePersistenceImpl
::
implLoadAllLocales
(
void
)
{
{
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
it
++
)
for
(
LocaleItemVectorIt
it
=
m_aLocaleItemVector
.
begin
();
it
!=
m_aLocaleItemVector
.
end
();
++
it
)
{
{
LocaleItem
*
pLocaleItem
=
*
it
;
LocaleItem
*
pLocaleItem
=
*
it
;
if
(
pLocaleItem
!=
NULL
)
if
(
pLocaleItem
!=
NULL
)
...
...
sfx2/source/appl/lnkbase2.cxx
Dosyayı görüntüle @
b21661ce
...
@@ -630,7 +630,7 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt )
...
@@ -630,7 +630,7 @@ static DdeTopic* FindTopic( const String & rLinkName, sal_uInt16* pItemStt )
for
(
int
i
=
0
;
i
<
2
;
++
i
)
for
(
int
i
=
0
;
i
<
2
;
++
i
)
{
{
for
(
std
::
vector
<
DdeTopic
*>::
iterator
iterTopic
=
rTopics
.
begin
();
for
(
std
::
vector
<
DdeTopic
*>::
iterator
iterTopic
=
rTopics
.
begin
();
iterTopic
!=
rTopics
.
end
();
iterTopic
++
)
iterTopic
!=
rTopics
.
end
();
++
iterTopic
)
if
(
(
*
iterTopic
)
->
GetName
()
==
sTopic
)
if
(
(
*
iterTopic
)
->
GetName
()
==
sTopic
)
return
*
iterTopic
;
return
*
iterTopic
;
...
...
sfx2/source/dialog/filtergrouping.cxx
Dosyayı görüntüle @
b21661ce
...
@@ -1093,7 +1093,7 @@ namespace sfx2
...
@@ -1093,7 +1093,7 @@ namespace sfx2
if
(
xFilterGroupManager
.
is
()
)
if
(
xFilterGroupManager
.
is
()
)
{
{
// Add both html/pdf filter as a filter group to get a separator between both groups
// Add both html/pdf filter as a filter group to get a separator between both groups
if
(
aImportantFilterGroup
.
size
()
>
0
)
if
(
!
aImportantFilterGroup
.
empty
()
)
{
{
Sequence
<
StringPair
>
aFilters
(
aImportantFilterGroup
.
size
()
);
Sequence
<
StringPair
>
aFilters
(
aImportantFilterGroup
.
size
()
);
for
(
sal_Int32
i
=
0
;
i
<
(
sal_Int32
)
aImportantFilterGroup
.
size
();
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
(
sal_Int32
)
aImportantFilterGroup
.
size
();
i
++
)
...
@@ -1113,7 +1113,7 @@ namespace sfx2
...
@@ -1113,7 +1113,7 @@ namespace sfx2
}
}
}
}
if
(
aFilterGroup
.
size
()
>
0
)
if
(
!
aFilterGroup
.
empty
()
)
{
{
Sequence
<
StringPair
>
aFilters
(
aFilterGroup
.
size
()
);
Sequence
<
StringPair
>
aFilters
(
aFilterGroup
.
size
()
);
for
(
sal_Int32
i
=
0
;
i
<
(
sal_Int32
)
aFilterGroup
.
size
();
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
(
sal_Int32
)
aFilterGroup
.
size
();
i
++
)
...
...
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