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
a55166cc
Kaydet (Commit)
a55166cc
authored
Nis 01, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace remaining getCppuType et al with cppu::UnoType
Change-Id: I641a3a1e2cf2c789844940d7231015cb85e3b8bc
üst
e1f3391a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
20 deletions
+20
-20
poolitem.hxx
include/svl/poolitem.hxx
+2
-2
cjkoptions.cxx
svl/source/config/cjkoptions.cxx
+1
-1
ctloptions.cxx
svl/source/config/ctloptions.cxx
+1
-1
globalnameitem.cxx
svl/source/items/globalnameitem.cxx
+1
-1
ilstitem.cxx
svl/source/items/ilstitem.cxx
+1
-1
numfmuno.cxx
svl/source/numbers/numfmuno.cxx
+14
-14
No files found.
include/svl/poolitem.hxx
Dosyayı görüntüle @
a55166cc
...
@@ -60,7 +60,7 @@ inline bool Any2Bool( const ::com::sun::star::uno::Any&rValue )
...
@@ -60,7 +60,7 @@ inline bool Any2Bool( const ::com::sun::star::uno::Any&rValue )
bool
nValue
=
false
;
bool
nValue
=
false
;
if
(
rValue
.
hasValue
()
)
if
(
rValue
.
hasValue
()
)
{
{
if
(
rValue
.
getValueType
()
==
::
getCppuBooleanType
()
)
if
(
rValue
.
getValueType
()
==
cppu
::
UnoType
<
bool
>::
get
()
)
{
{
nValue
=
*
static_cast
<
sal_Bool
const
*>
(
rValue
.
getValue
());
nValue
=
*
static_cast
<
sal_Bool
const
*>
(
rValue
.
getValue
());
}
}
...
@@ -77,7 +77,7 @@ inline bool Any2Bool( const ::com::sun::star::uno::Any&rValue )
...
@@ -77,7 +77,7 @@ inline bool Any2Bool( const ::com::sun::star::uno::Any&rValue )
inline
::
com
::
sun
::
star
::
uno
::
Any
Bool2Any
(
bool
bValue
)
inline
::
com
::
sun
::
star
::
uno
::
Any
Bool2Any
(
bool
bValue
)
{
{
return
::
com
::
sun
::
star
::
uno
::
Any
(
&
bValue
,
::
getCppuBooleanType
()
);
return
::
com
::
sun
::
star
::
uno
::
Any
(
&
bValue
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
...
...
svl/source/config/cjkoptions.cxx
Dosyayı görüntüle @
a55166cc
...
@@ -246,7 +246,7 @@ void SvtCJKOptions_Impl::ImplCommit()
...
@@ -246,7 +246,7 @@ void SvtCJKOptions_Impl::ImplCommit()
Any
*
pValues
=
aValues
.
getArray
();
Any
*
pValues
=
aValues
.
getArray
();
sal_Int32
nRealCount
=
0
;
sal_Int32
nRealCount
=
0
;
const
Type
&
rType
=
::
getBooleanCppuType
();
const
Type
&
rType
=
cppu
::
UnoType
<
bool
>::
get
();
for
(
int
nProp
=
0
;
nProp
<
nOrgCount
;
nProp
++
)
for
(
int
nProp
=
0
;
nProp
<
nOrgCount
;
nProp
++
)
{
{
switch
(
nProp
)
switch
(
nProp
)
...
...
svl/source/config/ctloptions.cxx
Dosyayı görüntüle @
a55166cc
...
@@ -150,7 +150,7 @@ void SvtCTLOptions_Impl::ImplCommit()
...
@@ -150,7 +150,7 @@ void SvtCTLOptions_Impl::ImplCommit()
Any
*
pValues
=
aValues
.
getArray
();
Any
*
pValues
=
aValues
.
getArray
();
sal_Int32
nRealCount
=
0
;
sal_Int32
nRealCount
=
0
;
const
uno
::
Type
&
rType
=
::
getBooleanCppuType
();
const
uno
::
Type
&
rType
=
cppu
::
UnoType
<
bool
>::
get
();
for
(
int
nProp
=
0
;
nProp
<
nOrgCount
;
nProp
++
)
for
(
int
nProp
=
0
;
nProp
<
nOrgCount
;
nProp
++
)
{
{
...
...
svl/source/items/globalnameitem.cxx
Dosyayı görüntüle @
a55166cc
...
@@ -75,7 +75,7 @@ bool SfxGlobalNameItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt
...
@@ -75,7 +75,7 @@ bool SfxGlobalNameItem::PutValue( const com::sun::star::uno::Any& rVal, sal_uInt
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
aSeq
;
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>
aSeq
;
com
::
sun
::
star
::
uno
::
Any
aNew
;
com
::
sun
::
star
::
uno
::
Any
aNew
;
try
{
aNew
=
xConverter
->
convertTo
(
rVal
,
::
getCppuType
((
const
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>*
)
0
)
);
}
try
{
aNew
=
xConverter
->
convertTo
(
rVal
,
cppu
::
UnoType
<
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int8
>>::
get
(
)
);
}
catch
(
com
::
sun
::
star
::
uno
::
Exception
&
)
{}
catch
(
com
::
sun
::
star
::
uno
::
Exception
&
)
{}
aNew
>>=
aSeq
;
aNew
>>=
aSeq
;
if
(
aSeq
.
getLength
()
==
16
)
if
(
aSeq
.
getLength
()
==
16
)
...
...
svl/source/items/ilstitem.cxx
Dosyayı görüntüle @
a55166cc
...
@@ -75,7 +75,7 @@ bool SfxIntegerListItem::PutValue ( const com::sun::star::uno::Any& rVal, sal_u
...
@@ -75,7 +75,7 @@ bool SfxIntegerListItem::PutValue ( const com::sun::star::uno::Any& rVal, sal_u
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
script
::
XTypeConverter
>
xConverter
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
script
::
XTypeConverter
>
xConverter
(
::
com
::
sun
::
star
::
script
::
Converter
::
create
(
::
comphelper
::
getProcessComponentContext
())
);
(
::
com
::
sun
::
star
::
script
::
Converter
::
create
(
::
comphelper
::
getProcessComponentContext
())
);
::
com
::
sun
::
star
::
uno
::
Any
aNew
;
::
com
::
sun
::
star
::
uno
::
Any
aNew
;
try
{
aNew
=
xConverter
->
convertTo
(
rVal
,
::
getCppuType
((
const
::
com
::
sun
::
star
::
uno
::
Sequence
<
sal_Int32
>*
)
0
)
);
}
try
{
aNew
=
xConverter
->
convertTo
(
rVal
,
cppu
::
UnoType
<
css
::
uno
::
Sequence
<
sal_Int32
>>::
get
(
)
);
}
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
catch
(
::
com
::
sun
::
star
::
uno
::
Exception
&
)
{
{
return
true
;
return
true
;
...
...
svl/source/numbers/numfmuno.cxx
Dosyayı görüntüle @
a55166cc
...
@@ -68,10 +68,10 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap()
...
@@ -68,10 +68,10 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberFormatPropertyMap()
{
OUString
(
PROPERTYNAME_CURRSYM
),
0
,
cppu
::
UnoType
<
OUString
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_CURRSYM
),
0
,
cppu
::
UnoType
<
OUString
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_DECIMALS
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_DECIMALS
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_LEADING
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_LEADING
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_NEGRED
),
0
,
getBooleanCppuType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_NEGRED
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_STDFORM
),
0
,
getBooleanCppuType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_STDFORM
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_THOUS
),
0
,
getBooleanCppuType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_THOUS
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_USERDEF
),
0
,
getBooleanCppuType
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_USERDEF
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_CURRABB
),
0
,
cppu
::
UnoType
<
OUString
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(
PROPERTYNAME_CURRABB
),
0
,
cppu
::
UnoType
<
OUString
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
|
beans
::
PropertyAttribute
::
READONLY
,
0
},
{
OUString
(),
0
,
css
::
uno
::
Type
(),
0
,
0
}
{
OUString
(),
0
,
css
::
uno
::
Type
(),
0
,
0
}
};
};
...
@@ -82,7 +82,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap()
...
@@ -82,7 +82,7 @@ static const SfxItemPropertyMapEntry* lcl_GetNumberSettingsPropertyMap()
{
{
static
const
SfxItemPropertyMapEntry
aNumberSettingsPropertyMap_Impl
[]
=
static
const
SfxItemPropertyMapEntry
aNumberSettingsPropertyMap_Impl
[]
=
{
{
{
OUString
(
PROPERTYNAME_NOZERO
),
0
,
getBooleanCppuType
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_NOZERO
),
0
,
cppu
::
UnoType
<
bool
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_NULLDATE
),
0
,
cppu
::
UnoType
<
util
::
Date
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_NULLDATE
),
0
,
cppu
::
UnoType
<
util
::
Date
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_STDDEC
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_STDDEC
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_TWODIGIT
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
{
OUString
(
PROPERTYNAME_TWODIGIT
),
0
,
cppu
::
UnoType
<
sal_Int16
>::
get
(),
beans
::
PropertyAttribute
::
BOUND
,
0
},
...
@@ -744,12 +744,12 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
...
@@ -744,12 +744,12 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
{
{
//! Pass through SvNumberformat Member bStandard?
//! Pass through SvNumberformat Member bStandard?
sal_Bool
bStandard
=
(
(
nKey
%
SV_COUNTRY_LANGUAGE_OFFSET
)
==
0
);
sal_Bool
bStandard
=
(
(
nKey
%
SV_COUNTRY_LANGUAGE_OFFSET
)
==
0
);
aRet
.
setValue
(
&
bStandard
,
getBooleanCppuType
()
);
aRet
.
setValue
(
&
bStandard
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
else
if
(
aPropertyName
==
PROPERTYNAME_USERDEF
)
else
if
(
aPropertyName
==
PROPERTYNAME_USERDEF
)
{
{
sal_Bool
bUserDef
=
(
(
pFormat
->
GetType
()
&
css
::
util
::
NumberFormat
::
DEFINED
)
!=
0
);
sal_Bool
bUserDef
=
(
(
pFormat
->
GetType
()
&
css
::
util
::
NumberFormat
::
DEFINED
)
!=
0
);
aRet
.
setValue
(
&
bUserDef
,
getBooleanCppuType
()
);
aRet
.
setValue
(
&
bUserDef
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
else
if
(
aPropertyName
==
PROPERTYNAME_DECIMALS
)
else
if
(
aPropertyName
==
PROPERTYNAME_DECIMALS
)
{
{
...
@@ -764,12 +764,12 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
...
@@ -764,12 +764,12 @@ uno::Any SAL_CALL SvNumberFormatObj::getPropertyValue( const OUString& aProperty
else
if
(
aPropertyName
==
PROPERTYNAME_NEGRED
)
else
if
(
aPropertyName
==
PROPERTYNAME_NEGRED
)
{
{
pFormat
->
GetFormatSpecialInfo
(
bThousand
,
bRed
,
nDecimals
,
nLeading
);
pFormat
->
GetFormatSpecialInfo
(
bThousand
,
bRed
,
nDecimals
,
nLeading
);
aRet
.
setValue
(
&
bRed
,
getBooleanCppuType
()
);
aRet
.
setValue
(
&
bRed
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
else
if
(
aPropertyName
==
PROPERTYNAME_THOUS
)
else
if
(
aPropertyName
==
PROPERTYNAME_THOUS
)
{
{
pFormat
->
GetFormatSpecialInfo
(
bThousand
,
bRed
,
nDecimals
,
nLeading
);
pFormat
->
GetFormatSpecialInfo
(
bThousand
,
bRed
,
nDecimals
,
nLeading
);
aRet
.
setValue
(
&
bThousand
,
getBooleanCppuType
()
);
aRet
.
setValue
(
&
bThousand
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
else
if
(
aPropertyName
==
PROPERTYNAME_CURRSYM
)
else
if
(
aPropertyName
==
PROPERTYNAME_CURRSYM
)
{
{
...
@@ -878,17 +878,17 @@ uno::Sequence<beans::PropertyValue> SAL_CALL SvNumberFormatObj::getPropertyValue
...
@@ -878,17 +878,17 @@ uno::Sequence<beans::PropertyValue> SAL_CALL SvNumberFormatObj::getPropertyValue
pArray
[
3
].
Name
=
PROPERTYNAME_COMMENT
;
pArray
[
3
].
Name
=
PROPERTYNAME_COMMENT
;
pArray
[
3
].
Value
<<=
aComment
;
pArray
[
3
].
Value
<<=
aComment
;
pArray
[
4
].
Name
=
PROPERTYNAME_STDFORM
;
pArray
[
4
].
Name
=
PROPERTYNAME_STDFORM
;
pArray
[
4
].
Value
.
setValue
(
&
bStandard
,
getBooleanCppuType
()
);
pArray
[
4
].
Value
.
setValue
(
&
bStandard
,
cppu
::
UnoType
<
bool
>::
get
()
);
pArray
[
5
].
Name
=
PROPERTYNAME_USERDEF
;
pArray
[
5
].
Name
=
PROPERTYNAME_USERDEF
;
pArray
[
5
].
Value
.
setValue
(
&
bUserDef
,
getBooleanCppuType
()
);
pArray
[
5
].
Value
.
setValue
(
&
bUserDef
,
cppu
::
UnoType
<
bool
>::
get
()
);
pArray
[
6
].
Name
=
PROPERTYNAME_DECIMALS
;
pArray
[
6
].
Name
=
PROPERTYNAME_DECIMALS
;
pArray
[
6
].
Value
<<=
(
sal_Int16
)(
nDecimals
);
pArray
[
6
].
Value
<<=
(
sal_Int16
)(
nDecimals
);
pArray
[
7
].
Name
=
PROPERTYNAME_LEADING
;
pArray
[
7
].
Name
=
PROPERTYNAME_LEADING
;
pArray
[
7
].
Value
<<=
(
sal_Int16
)(
nLeading
);
pArray
[
7
].
Value
<<=
(
sal_Int16
)(
nLeading
);
pArray
[
8
].
Name
=
PROPERTYNAME_NEGRED
;
pArray
[
8
].
Name
=
PROPERTYNAME_NEGRED
;
pArray
[
8
].
Value
.
setValue
(
&
bRed
,
getBooleanCppuType
()
);
pArray
[
8
].
Value
.
setValue
(
&
bRed
,
cppu
::
UnoType
<
bool
>::
get
()
);
pArray
[
9
].
Name
=
PROPERTYNAME_THOUS
;
pArray
[
9
].
Name
=
PROPERTYNAME_THOUS
;
pArray
[
9
].
Value
.
setValue
(
&
bThousand
,
getBooleanCppuType
()
);
pArray
[
9
].
Value
.
setValue
(
&
bThousand
,
cppu
::
UnoType
<
bool
>::
get
()
);
pArray
[
10
].
Name
=
PROPERTYNAME_CURRSYM
;
pArray
[
10
].
Name
=
PROPERTYNAME_CURRSYM
;
pArray
[
10
].
Value
<<=
aSymbol
;
pArray
[
10
].
Value
<<=
aSymbol
;
pArray
[
11
].
Name
=
PROPERTYNAME_CURREXT
;
pArray
[
11
].
Name
=
PROPERTYNAME_CURREXT
;
...
@@ -1011,7 +1011,7 @@ uno::Any SAL_CALL SvNumberFormatSettingsObj::getPropertyValue( const OUString& a
...
@@ -1011,7 +1011,7 @@ uno::Any SAL_CALL SvNumberFormatSettingsObj::getPropertyValue( const OUString& a
if
(
aPropertyName
==
PROPERTYNAME_NOZERO
)
if
(
aPropertyName
==
PROPERTYNAME_NOZERO
)
{
{
sal_Bool
bNoZero
=
pFormatter
->
GetNoZero
();
sal_Bool
bNoZero
=
pFormatter
->
GetNoZero
();
aRet
.
setValue
(
&
bNoZero
,
getBooleanCppuType
()
);
aRet
.
setValue
(
&
bNoZero
,
cppu
::
UnoType
<
bool
>::
get
()
);
}
}
else
if
(
aPropertyName
==
PROPERTYNAME_NULLDATE
)
else
if
(
aPropertyName
==
PROPERTYNAME_NULLDATE
)
{
{
...
...
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