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
893362bc
Kaydet (Commit)
893362bc
authored
Şub 05, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
comphelper: do not use "r" prefix for uno::Reference
Change-Id: I5e92ca9dbb0c9f33c9511cc4b12db1433e40fa68
üst
b8cf9b33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
AnyCompareFactory.cxx
comphelper/source/compare/AnyCompareFactory.cxx
+9
-9
No files found.
comphelper/source/compare/AnyCompareFactory.cxx
Dosyayı görüntüle @
893362bc
...
...
@@ -41,13 +41,13 @@ using namespace com::sun::star::i18n;
class
AnyCompare
:
public
::
cppu
::
WeakImplHelper1
<
XAnyCompare
>
{
Reference
<
XCollator
>
m_
r
Collator
;
Reference
<
XCollator
>
m_
x
Collator
;
public
:
AnyCompare
(
Reference
<
XComponentContext
>
xContext
,
const
Locale
&
rLocale
)
{
m_
r
Collator
=
Collator
::
create
(
xContext
);
m_
r
Collator
->
loadDefaultCollator
(
rLocale
,
m_
x
Collator
=
Collator
::
create
(
xContext
);
m_
x
Collator
->
loadDefaultCollator
(
rLocale
,
0
);
//???
}
...
...
@@ -56,12 +56,12 @@ public:
class
AnyCompareFactory
:
public
cppu
::
WeakImplHelper3
<
XAnyCompareFactory
,
XInitialization
,
XServiceInfo
>
{
Reference
<
XAnyCompare
>
m_
r
AnyCompare
;
Reference
<
XComponentContext
>
m_
r
Context
;
Reference
<
XAnyCompare
>
m_
x
AnyCompare
;
Reference
<
XComponentContext
>
m_
x
Context
;
Locale
m_Locale
;
public
:
AnyCompareFactory
(
Reference
<
XComponentContext
>
xContext
)
:
m_
r
Context
(
xContext
)
AnyCompareFactory
(
Reference
<
XComponentContext
>
xContext
)
:
m_
x
Context
(
xContext
)
{}
// XAnyCompareFactory
...
...
@@ -92,7 +92,7 @@ sal_Int16 SAL_CALL AnyCompare::compare( const Any& any1, const Any& any2 ) throw
any1
>>=
aStr1
;
any2
>>=
aStr2
;
aResult
=
(
sal_Int16
)
m_rCollator
->
compareString
(
aStr1
,
aStr2
);
aResult
=
static_cast
<
sal_Int16
>
(
m_xCollator
->
compareString
(
aStr1
,
aStr2
)
);
return
aResult
;
}
...
...
@@ -103,7 +103,7 @@ Reference< XAnyCompare > SAL_CALL AnyCompareFactory::createAnyCompareByName( con
// so no check for the property name is done
if
(
aPropertyName
==
"Title"
)
return
m_
r
AnyCompare
;
return
m_
x
AnyCompare
;
return
Reference
<
XAnyCompare
>
();
}
...
...
@@ -114,7 +114,7 @@ void SAL_CALL AnyCompareFactory::initialize( const Sequence< Any >& aArguments )
{
if
(
aArguments
[
0
]
>>=
m_Locale
)
{
m_
rAnyCompare
=
new
AnyCompare
(
m_r
Context
,
m_Locale
);
m_
xAnyCompare
=
new
AnyCompare
(
m_x
Context
,
m_Locale
);
return
;
}
}
...
...
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