sw/source/core/unocore/unoevent.cxx | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-)
New commits: commit 71e91ab288323c68c22290d12d88d890dd7991fa Author: Miklos Vajna <vmik...@suse.cz> Date: Sat Jun 23 13:16:43 2012 +0200 sw: kill some unused global variables and RTL_CONSTASCII_USTRINGPARAM usage Change-Id: I45f2fb68d613443cd6fcf0af5660d0f74c54c7ac diff --git a/sw/source/core/unocore/unoevent.cxx b/sw/source/core/unocore/unoevent.cxx index 6542d65..a5695ca 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) { } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits