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
44a46d4f
Kaydet (Commit)
44a46d4f
authored
Eki 06, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:mergeclasses
Change-Id: I28d8bd79f266df7e9ea420f7238ed332ec4205a9
üst
dee4645e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
51 deletions
+16
-51
mergeclasses.results
compilerplugins/clang/mergeclasses.results
+0
-1
object.hxx
store/source/object.hxx
+7
-41
stordir.hxx
store/source/stordir.hxx
+2
-2
store.cxx
store/source/store.cxx
+3
-3
storlckb.hxx
store/source/storlckb.hxx
+2
-2
storpage.hxx
store/source/storpage.hxx
+2
-2
No files found.
compilerplugins/clang/mergeclasses.results
Dosyayı görüntüle @
44a46d4f
...
...
@@ -249,7 +249,6 @@ merge slideshow::internal::UserPaintEventHandler with slideshow::internal::Paint
merge slideshow::internal::View with slideshow::internal::UnoView
merge slideshow::internal::ViewRepaintHandler with (anonymous namespace)::SlideShowImpl::SeparateListenerImpl
merge slideshow::internal::ViewUpdate with slideshow::internal::ShapeManagerImpl
merge store::IStoreHandle with store::OStoreObject
merge store::PageCache with store::PageCache_Impl
merge svgio::svgreader::InfoProvider with svgio::svgreader::SvgNode
merge svl::IUndoManager with SfxUndoManager
...
...
store/source/object.hxx
Dosyayı görüntüle @
44a46d4f
...
...
@@ -27,48 +27,21 @@
namespace
store
{
/*========================================================================
*
* IStoreHandle interface.
*
*======================================================================*/
class
IStoreHandle
:
public
virtual
salhelper
::
SimpleReferenceObject
{
public
:
/** Replaces dynamic_cast type checking.
*/
virtual
bool
isKindOf
(
sal_uInt32
nTypeId
)
=
0
;
protected
:
virtual
~
IStoreHandle
()
{}
};
/** Template helper function as dynamic_cast replacement.
*/
template
<
class
store_handle_type
>
store_handle_type
*
SAL_CALL
query
(
IStoreHandle
*
pHandle
,
store_handle_type
*
);
/*========================================================================
*
* OStoreObject interface.
*
*======================================================================*/
class
OStoreObject
:
public
store
::
IStoreHandle
class
OStoreObject
:
public
virtual
salhelper
::
SimpleReferenceObject
{
/** Template function specialization as dynamic_cast replacement.
*/
friend
OStoreObject
*
SAL_CALL
query
<>
(
IStoreHandle
*
pHandle
,
OStoreObject
*
);
public
:
/** Construction.
*/
OStoreObject
()
{}
/**
IStoreHandle
.
/**
Replaces dynamic_cast type checking
.
*/
virtual
bool
isKindOf
(
sal_uInt32
nTypeId
)
SAL_OVERRIDE
;
virtual
bool
isKindOf
(
sal_uInt32
nTypeId
);
protected
:
/** Destruction.
...
...
@@ -83,18 +56,11 @@ private:
OStoreObject
&
operator
=
(
const
OStoreObject
&
)
SAL_DELETED_FUNCTION
;
};
/** Template
function specializa
tion as dynamic_cast replacement.
/** Template
helper func
tion as dynamic_cast replacement.
*/
template
<>
inline
OStoreObject
*
SAL_CALL
query
(
IStoreHandle
*
pHandle
,
OStoreObject
*
)
{
if
(
pHandle
&&
pHandle
->
isKindOf
(
OStoreObject
::
m_nTypeId
))
{
// Handle is kind of OStoreObject.
return
static_cast
<
OStoreObject
*>
(
pHandle
);
}
return
0
;
}
template
<
class
store_handle_type
>
store_handle_type
*
SAL_CALL
query
(
OStoreObject
*
pHandle
,
store_handle_type
*
);
/*========================================================================
*
...
...
store/source/stordir.hxx
Dosyayı görüntüle @
44a46d4f
...
...
@@ -85,7 +85,7 @@ private:
/** IStoreHandle query() template function specialization.
*/
friend
OStoreDirectory_Impl
*
SAL_CALL
query
<>
(
IStoreHandle
*
pHandle
,
OStoreDirectory_Impl
*
);
SAL_CALL
query
<>
(
OStoreObject
*
pHandle
,
OStoreDirectory_Impl
*
);
/** Representation.
*/
...
...
@@ -103,7 +103,7 @@ private:
};
template
<>
inline
OStoreDirectory_Impl
*
SAL_CALL
query
(
IStoreHandle
*
pHandle
,
SAL_UNUSED_PARAMETER
OStoreDirectory_Impl
*
)
SAL_CALL
query
(
OStoreObject
*
pHandle
,
SAL_UNUSED_PARAMETER
OStoreDirectory_Impl
*
)
{
if
(
pHandle
&&
pHandle
->
isKindOf
(
OStoreDirectory_Impl
::
m_nTypeId
))
{
...
...
store/source/store.cxx
Dosyayı görüntüle @
44a46d4f
...
...
@@ -48,7 +48,7 @@ public:
static
store_handle_type
*
SAL_CALL
query
(
void
*
pHandle
)
{
return
store
::
query
(
static_cast
<
IStoreHandle
*>
(
pHandle
),
static_cast
<
OStoreObject
*>
(
pHandle
),
static_cast
<
store_handle_type
*>
(
0
));
}
};
...
...
@@ -68,7 +68,7 @@ storeError SAL_CALL store_acquireHandle (
storeHandle
Handle
)
SAL_THROW_EXTERN_C
()
{
IStoreHandle
*
pHandle
=
static_cast
<
IStoreHandle
*>
(
Handle
);
OStoreObject
*
pHandle
=
static_cast
<
OStoreObject
*>
(
Handle
);
if
(
!
pHandle
)
return
store_E_InvalidHandle
;
...
...
@@ -83,7 +83,7 @@ storeError SAL_CALL store_releaseHandle (
storeHandle
Handle
)
SAL_THROW_EXTERN_C
()
{
IStoreHandle
*
pHandle
=
static_cast
<
IStoreHandle
*>
(
Handle
);
OStoreObject
*
pHandle
=
static_cast
<
OStoreObject
*>
(
Handle
);
if
(
!
pHandle
)
return
store_E_InvalidHandle
;
...
...
store/source/storlckb.hxx
Dosyayı görüntüle @
44a46d4f
...
...
@@ -120,7 +120,7 @@ private:
/** IStoreHandle query() template specialization.
*/
friend
OStoreLockBytes
*
SAL_CALL
query
<>
(
IStoreHandle
*
pHandle
,
OStoreLockBytes
*
);
SAL_CALL
query
<>
(
OStoreObject
*
pHandle
,
OStoreLockBytes
*
);
/** Representation.
*/
...
...
@@ -139,7 +139,7 @@ private:
};
template
<>
inline
OStoreLockBytes
*
SAL_CALL
query
(
IStoreHandle
*
pHandle
,
SAL_UNUSED_PARAMETER
OStoreLockBytes
*
)
SAL_CALL
query
(
OStoreObject
*
pHandle
,
SAL_UNUSED_PARAMETER
OStoreLockBytes
*
)
{
if
(
pHandle
&&
pHandle
->
isKindOf
(
OStoreLockBytes
::
m_nTypeId
))
{
...
...
store/source/storpage.hxx
Dosyayı görüntüle @
44a46d4f
...
...
@@ -157,7 +157,7 @@ private:
/** IStoreHandle query() template function specialization.
*/
friend
OStorePageManager
*
SAL_CALL
query
<>
(
IStoreHandle
*
pHandle
,
OStorePageManager
*
);
SAL_CALL
query
<>
(
OStoreObject
*
pHandle
,
OStorePageManager
*
);
/** Representation.
*/
...
...
@@ -194,7 +194,7 @@ inline bool OStorePageManager::isValid() const
}
template
<>
inline
OStorePageManager
*
SAL_CALL
query
(
IStoreHandle
*
pHandle
,
SAL_UNUSED_PARAMETER
OStorePageManager
*
)
SAL_CALL
query
(
OStoreObject
*
pHandle
,
SAL_UNUSED_PARAMETER
OStorePageManager
*
)
{
if
(
pHandle
&&
pHandle
->
isKindOf
(
OStorePageManager
::
m_nTypeId
))
{
...
...
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