diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-06-23 13:16:43 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-06-23 13:17:26 +0200 |
commit | 71e91ab288323c68c22290d12d88d890dd7991fa (patch) | |
tree | 472be273a4b863f3f543ecb254d9d88e3cca375e | |
parent | 983b2ee0c82196ee23becaf70a53fa9186f5df06 (diff) |
sw: kill some unused global variables and RTL_CONSTASCII_USTRINGPARAM usage
Change-Id: I45f2fb68d613443cd6fcf0af5660d0f74c54c7ac
-rw-r--r-- | sw/source/core/unocore/unoevent.cxx | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/sw/source/core/unocore/unoevent.cxx b/sw/source/core/unocore/unoevent.cxx index 6542d655f18e..a5695cae9bc9 100644 --- a/sw/source/core/unocore/unoevent.cxx +++ b/sw/source/core/unocore/unoevent.cxx @@ -45,17 +45,6 @@ using ::cppu::WeakImplHelper2; using ::rtl::OUString; using ::rtl::OUStringBuffer; - -const sal_Char sAPI_ServiceName[] = "com.sun.star.container.XNameReplace"; -const sal_Char sAPI_SwFrameEventDescriptor[] = "SwFrameEventDescriptor"; -const sal_Char sAPI_SwFrameStyleEventDescriptor[] = - "SwFrameStyleEventDescriptor"; -const sal_Char sAPI_SwDetachedEventDescriptor[] = "SwDetachedEventDescriptor"; -const sal_Char sAPI_SwHyperlinkEventDescriptor[] = - "SwHyperlinkEventDescriptor"; -const sal_Char sAPI_SwAutoTextEventDescriptor[] = - "SwAutoTextEventDescriptor"; - // // tables of allowed events for specific objects // @@ -131,7 +120,7 @@ const struct SvEventDescription aFrameStyleEvents[] = SwHyperlinkEventDescriptor::SwHyperlinkEventDescriptor() : SvDetachedEventDescriptor(aHyperlinkEvents), - sImplName(RTL_CONSTASCII_USTRINGPARAM(sAPI_SwHyperlinkEventDescriptor)) + sImplName("SwHyperlinkEventDescriptor") { } @@ -201,8 +190,7 @@ void SwHyperlinkEventDescriptor::copyMacrosFromNameReplace( SwFrameEventDescriptor::SwFrameEventDescriptor( SwXTextFrame& rFrameRef ) : SvEventDescriptor((text::XTextFrame&)rFrameRef, aFrameEvents), - sSwFrameEventDescriptor(RTL_CONSTASCII_USTRINGPARAM( - sAPI_SwFrameEventDescriptor)), + sSwFrameEventDescriptor("SwFrameEventDescriptor"), rFrame(rFrameRef) { } @@ -255,8 +243,7 @@ SwFrameStyleEventDescriptor::SwFrameStyleEventDescriptor( SwXFrameStyle& rStyleRef ) : SvEventDescriptor((document::XEventsSupplier&)rStyleRef, aFrameStyleEvents), - sSwFrameStyleEventDescriptor(RTL_CONSTASCII_USTRINGPARAM( - sAPI_SwFrameStyleEventDescriptor)), + sSwFrameStyleEventDescriptor("SwFrameStyleEventDescriptor"), rStyle(rStyleRef) { } |