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
b3847f3d
Kaydet (Commit)
b3847f3d
authored
Mar 26, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Work around MSC "'override' cannot be used with 'inline'" bug
Change-Id: Icd3b09f098c19268ac888dd6195fb535979557ed
üst
35ddbcbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
29 deletions
+16
-29
listenernotification.hxx
include/comphelper/listenernotification.hxx
+16
-29
No files found.
include/comphelper/listenernotification.hxx
Dosyayı görüntüle @
b3847f3d
...
@@ -203,10 +203,16 @@ namespace comphelper
...
@@ -203,10 +203,16 @@ namespace comphelper
inline
bool
notify
(
const
EventClass
&
_rEvent
,
NotificationMethod
_pNotify
)
SAL_THROW
((
::
com
::
sun
::
star
::
uno
::
Exception
));
inline
bool
notify
(
const
EventClass
&
_rEvent
,
NotificationMethod
_pNotify
)
SAL_THROW
((
::
com
::
sun
::
star
::
uno
::
Exception
));
protected
:
protected
:
inline
virtual
bool
implNotify
(
virtual
bool
implNotify
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
_rxListener
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
_rxListener
,
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
_rEvent
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
_rEvent
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
SAL_OVERRIDE
;
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
SAL_OVERRIDE
{
const
EventClass
&
rTypedEvent
(
static_cast
<
const
EventClass
&
>
(
_rEvent
)
);
ListenerClass
*
pTypedListener
(
static_cast
<
ListenerClass
*
>
(
_rxListener
.
get
()
)
);
(
pTypedListener
->*
m_pNotificationMethod
)(
rTypedEvent
);
return
true
;
}
};
};
...
@@ -219,19 +225,6 @@ namespace comphelper
...
@@ -219,19 +225,6 @@ namespace comphelper
return
bRet
;
return
bRet
;
}
}
template
<
class
LISTENER
,
class
EVENT
>
inline
bool
OSimpleListenerContainer
<
LISTENER
,
EVENT
>::
implNotify
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
_rxListener
,
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
_rEvent
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
{
const
EventClass
&
rTypedEvent
(
static_cast
<
const
EventClass
&
>
(
_rEvent
)
);
ListenerClass
*
pTypedListener
(
static_cast
<
ListenerClass
*
>
(
_rxListener
.
get
()
)
);
(
pTypedListener
->*
m_pNotificationMethod
)(
rTypedEvent
);
return
true
;
}
//= OListenerContainerBase
//= OListenerContainerBase
/** is a specialization of OListenerContainer which saves you some additional type casts,
/** is a specialization of OListenerContainer which saves you some additional type casts,
...
@@ -267,10 +260,16 @@ namespace comphelper
...
@@ -267,10 +260,16 @@ namespace comphelper
using
OListenerContainer
::
impl_notify
;
using
OListenerContainer
::
impl_notify
;
protected
:
protected
:
inline
virtual
bool
implNotify
(
virtual
bool
implNotify
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
_rxListener
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
_rxListener
,
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
_rEvent
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
_rEvent
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
SAL_OVERRIDE
;
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
SAL_OVERRIDE
{
return
implTypedNotify
(
::
com
::
sun
::
star
::
uno
::
Reference
<
ListenerClass
>
(
static_cast
<
ListenerClass
*
>
(
_rxListener
.
get
()
)
),
static_cast
<
const
EventClass
&
>
(
_rEvent
)
);
}
virtual
bool
implTypedNotify
(
virtual
bool
implTypedNotify
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
ListenerClass
>&
_rxListener
,
const
::
com
::
sun
::
star
::
uno
::
Reference
<
ListenerClass
>&
_rxListener
,
...
@@ -278,18 +277,6 @@ namespace comphelper
...
@@ -278,18 +277,6 @@ namespace comphelper
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
=
0
;
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
=
0
;
};
};
template
<
class
LISTENER
,
class
EVENT
>
inline
bool
OListenerContainerBase
<
LISTENER
,
EVENT
>::
implNotify
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
lang
::
XEventListener
>&
_rxListener
,
const
::
com
::
sun
::
star
::
lang
::
EventObject
&
_rEvent
)
SAL_THROW
(
(
::
com
::
sun
::
star
::
uno
::
Exception
)
)
{
return
implTypedNotify
(
::
com
::
sun
::
star
::
uno
::
Reference
<
ListenerClass
>
(
static_cast
<
ListenerClass
*
>
(
_rxListener
.
get
()
)
),
static_cast
<
const
EventClass
&
>
(
_rEvent
)
);
}
}
// namespace comphelper
}
// namespace comphelper
...
...
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