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
bc01ec73
Kaydet (Commit)
bc01ec73
authored
Eki 17, 2010
tarafından
Kenneth Venken
Kaydeden (comit)
Norbert Thiebaud
Eki 17, 2010
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use SAL_N_ELEMENTS macro
üst
af0a13ea
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
10 deletions
+15
-10
olmenu.cxx
sw/source/ui/lingu/olmenu.cxx
+2
-1
pgfnote.cxx
sw/source/ui/misc/pgfnote.cxx
+2
-1
viewsrch.cxx
sw/source/ui/uiview/viewsrch.cxx
+4
-3
vbaborders.cxx
sw/source/ui/vba/vbaborders.cxx
+2
-1
vbafont.cxx
sw/source/ui/vba/vbafont.cxx
+2
-1
vbaglobals.cxx
sw/source/ui/vba/vbaglobals.cxx
+2
-2
vbapalette.cxx
sw/source/ui/vba/vbapalette.cxx
+1
-1
No files found.
sw/source/ui/lingu/olmenu.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -91,6 +91,7 @@
#include <vcl/msgbox.hxx>
#include <vcl/settings.hxx>
#include <vcl/svapp.hxx>
#include <sal/macros.h>
#include <map>
...
...
@@ -179,7 +180,7 @@ LanguageType lcl_CheckLanguage(
lang
::
Locale
a3
(
SvxCreateLocale
(
aLangList
[
3
]
)
);
#endif
INT32
nCount
=
sizeof
(
aLangList
)
/
sizeof
(
aLangList
[
0
]
);
INT32
nCount
=
SAL_N_ELEMENTS
(
aLangList
);
for
(
INT32
i
=
0
;
i
<
nCount
;
i
++
)
{
INT16
nTmpLang
=
aLangList
[
i
];
...
...
sw/source/ui/misc/pgfnote.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -39,6 +39,7 @@
#include <hintids.hxx>
#include <tools/ref.hxx>
#include <svx/dialogs.hrc>
#include <sal/macros.h>
#include <vcl/field.hxx>
#include <vcl/svapp.hxx>
#include <unotools/localedatawrapper.hxx>
...
...
@@ -70,7 +71,7 @@ static const USHORT __FAR_DATA nLines[] = {
500
};
static
const
USHORT
nLineCount
=
sizeof
(
nLines
)
/
sizeof
(
nLines
[
0
]
);
static
const
USHORT
nLineCount
=
SAL_N_ELEMENTS
(
nLines
);
static
USHORT
__FAR_DATA
aPageRg
[]
=
{
FN_PARAM_FTN_INFO
,
FN_PARAM_FTN_INFO
,
...
...
sw/source/ui/uiview/viewsrch.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -43,6 +43,7 @@
#include <svl/itempool.hxx>
#include <svl/eitem.hxx>
#include <svl/srchitem.hxx>
#include <sal/macros.h>
#include <sfx2/request.hxx>
#include <svx/srchdlg.hxx>
#include <vcl/msgbox.hxx>
...
...
@@ -380,16 +381,16 @@ void SwView::ExecSearch(SfxRequest& rReq, BOOL bNoMessage)
SvUShorts
aArr
(
0
,
16
);
aArr
.
Insert
(
aNormalAttr
,
sizeof
(
aNormalAttr
)
/
sizeof
(
aNormalAttr
[
0
]
),
SAL_N_ELEMENTS
(
aNormalAttr
),
0
);
if
(
SW_MOD
()
->
GetCTLOptions
().
IsCTLFontEnabled
()
)
aArr
.
Insert
(
aCTLAttr
,
sizeof
(
aCTLAttr
)
/
sizeof
(
aCTLAttr
[
0
]
),
SAL_N_ELEMENTS
(
aCTLAttr
),
14
);
SvtCJKOptions
aCJKOpt
;
if
(
aCJKOpt
.
IsAnyEnabled
()
)
aArr
.
Insert
(
aCJKAttr
,
sizeof
(
aCJKAttr
)
/
sizeof
(
aCJKAttr
[
0
]
),
SAL_N_ELEMENTS
(
aCJKAttr
),
14
);
SfxItemSet
aSet
(
pWrtShell
->
GetAttrPool
(),
aArr
.
GetData
()
);
...
...
sw/source/ui/vba/vbaborders.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -29,6 +29,7 @@
#include <ooo/vba/word/XBorder.hpp>
#include <ooo/vba/word/WdBorderType.hpp>
#include <ooo/vba/word/WdLineStyle.hpp>
#include <sal/macros.h>
#include <cppuhelper/implbase3.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/table/TableBorder.hpp>
...
...
@@ -269,7 +270,7 @@ public:
// XIndexAccess
virtual
::
sal_Int32
SAL_CALL
getCount
(
)
throw
(
uno
::
RuntimeException
)
{
return
sizeof
(
supportedIndexTable
)
/
sizeof
(
supportedIndexTable
[
0
]
);
return
SAL_N_ELEMENTS
(
supportedIndexTable
);
}
virtual
uno
::
Any
SAL_CALL
getByIndex
(
::
sal_Int32
Index
)
throw
(
lang
::
IndexOutOfBoundsException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
{
...
...
sw/source/ui/vba/vbafont.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -3,6 +3,7 @@
#include <com/sun/star/awt/FontUnderline.hpp>
#include <ooo/vba/word/WdUnderline.hpp>
#include <hash_map>
#include <sal/macros.h>
#include <ooo/vba/word/WdColorIndex.hpp>
using
namespace
::
ooo
::
vba
;
...
...
@@ -46,7 +47,7 @@ class UnderLineMapper
private
:
UnderLineMapper
()
{
sal_Int32
nLen
=
sizeof
(
UnderLineTable
)
/
sizeof
(
UnderLineTable
[
0
]
);
sal_Int32
nLen
=
SAL_N_ELEMENTS
(
UnderLineTable
);
for
(
sal_Int32
index
=
0
;
index
<
nLen
;
++
index
)
{
...
...
sw/source/ui/vba/vbaglobals.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -27,7 +27,7 @@
************************************************************************/
#include <vbahelper/helperdecl.hxx>
#include "vbaglobals.hxx"
#include <sal/macros.h>
#include <comphelper/unwrapargs.hxx>
#include <com/sun/star/lang/XMultiComponentFactory.hpp>
...
...
@@ -178,7 +178,7 @@ SwVbaGlobals::getAvailableServiceNames( ) throw (uno::RuntimeException)
// #FIXME #TODO make Application a proper service
// ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( "ooo.vba.word.Application" ) ),
};
sal_Int32
nWordServices
=
(
sizeof
(
names
)
/
sizeof
(
names
[
0
]
)
);
sal_Int32
nWordServices
=
SAL_N_ELEMENTS
(
names
);
sal_Int32
startIndex
=
serviceNames
.
getLength
();
serviceNames
.
realloc
(
serviceNames
.
getLength
()
+
nWordServices
);
for
(
sal_Int32
index
=
0
;
index
<
nWordServices
;
++
index
)
...
...
sw/source/ui/vba/vbapalette.cxx
Dosyayı görüntüle @
bc01ec73
...
...
@@ -40,7 +40,7 @@ public:
// Methods XIndexAccess
virtual
::
sal_Int32
SAL_CALL
getCount
()
throw
(
uno
::
RuntimeException
)
{
return
sizeof
(
ColorTable
)
/
sizeof
(
ColorTable
[
0
]
);
return
SAL_N_ELEMENTS
(
ColorTable
);
}
virtual
uno
::
Any
SAL_CALL
getByIndex
(
::
sal_Int32
Index
)
throw
(
lang
::
IndexOutOfBoundsException
,
lang
::
WrappedTargetException
,
uno
::
RuntimeException
)
...
...
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