summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-21 12:42:16 +0200
committerNoel Grandin <noel@peralex.com>2015-10-21 14:17:56 +0200
commit2f3ea8dfbc7dedc785cd07ad0b681a0da3904a80 (patch)
tree533c450fb3e8e5b75d5ccdc9dc6c358da481513f /sw/source/uibase
parent54409159b8a12ca3d387e2ff2a2e1ff9dad1a2a3 (diff)
refactor out some com::sun::star typedefs
which mostly serve to make the code harder to read Change-Id: Ia2a83fee9f850ab6f0bea6305ce8600d6b785fe8
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/inc/glosdoc.hxx7
-rw-r--r--sw/source/uibase/misc/glosdoc.cxx4
2 files changed, 4 insertions, 7 deletions
diff --git a/sw/source/uibase/inc/glosdoc.hxx b/sw/source/uibase/inc/glosdoc.hxx
index 2844073e4ecd..a9cddb26d986 100644
--- a/sw/source/uibase/inc/glosdoc.hxx
+++ b/sw/source/uibase/inc/glosdoc.hxx
@@ -35,11 +35,8 @@ typedef tools::SvRef<SwDocShell> SwDocShellRef;
#include <vector>
#include "swdllapi.h"
-typedef ::com::sun::star::uno::WeakReference< ::com::sun::star::text::XAutoTextGroup > AutoTextGroupRef;
-typedef ::std::vector< AutoTextGroupRef > UnoAutoTextGroups;
-
-typedef ::com::sun::star::uno::WeakReference< ::com::sun::star::text::XAutoTextEntry > AutoTextEntryRef;
-typedef ::std::vector< AutoTextEntryRef > UnoAutoTextEntries;
+typedef ::std::vector< css::uno::WeakReference< css::text::XAutoTextGroup > > UnoAutoTextGroups;
+typedef ::std::vector< css::uno::WeakReference< css::text::XAutoTextEntry > > UnoAutoTextEntries;
#define GLOS_DELIM (sal_Unicode)'*'
diff --git a/sw/source/uibase/misc/glosdoc.cxx b/sw/source/uibase/misc/glosdoc.cxx
index fbd685a9fac8..6b147080a178 100644
--- a/sw/source/uibase/misc/glosdoc.cxx
+++ b/sw/source/uibase/misc/glosdoc.cxx
@@ -596,7 +596,7 @@ Reference< text::XAutoTextGroup > SwGlossaries::GetAutoTextGroup( const OUString
{
xGroup = new SwXAutoTextGroup( sCompleteGroupName, this );
// cache it
- m_aGlossaryGroups.push_back( AutoTextGroupRef( xGroup ) );
+ m_aGlossaryGroups.push_back( css::uno::WeakReference< css::text::XAutoTextGroup >( xGroup ) );
}
return xGroup;
@@ -654,7 +654,7 @@ Reference< text::XAutoTextEntry > SwGlossaries::GetAutoTextEntry(
{
xReturn = new SwXAutoTextEntry( this, rGroupName, rEntryName );
// cache it
- m_aGlossaryEntries.push_back( AutoTextEntryRef( xReturn ) );
+ m_aGlossaryEntries.push_back( css::uno::WeakReference< css::text::XAutoTextEntry >( xReturn ) );
}
return xReturn;