diff options
author | Jacek Fraczek <fraczek.jacek@gmail.com> | 2016-10-05 22:00:51 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-10 08:48:30 +0000 |
commit | f004aa99514d385f3ee254bba735f5eaeb7d9ad8 (patch) | |
tree | aacd5792f553b8e9cbf029cc7e0797ed0dd423fe /idl/inc | |
parent | 728c7327bd97602a38723553ed044ea4c01d13b2 (diff) |
tdf#89307: Removed SvRef::operator T*()
Conditional statements are using SvRef::Is() method.
Changed static_cast<T*>(svRef<T>) occurances to svRef.get().
Added operator == and != to SvRef.
SbxObject::Execute is using SbxVariableRef internally.
SbxObject::FindQualified is using SbxVariableRef internally.
Change-Id: I45b553e35d8fca9bf71163e6eefc60802a066395
Reviewed-on: https://gerrit.libreoffice.org/29621
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'idl/inc')
-rw-r--r-- | idl/inc/basobj.hxx | 2 | ||||
-rw-r--r-- | idl/inc/globals.hxx | 2 | ||||
-rw-r--r-- | idl/inc/object.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/idl/inc/basobj.hxx b/idl/inc/basobj.hxx index d6adb8d809ad..44de0278c36b 100644 --- a/idl/inc/basobj.hxx +++ b/idl/inc/basobj.hxx @@ -121,7 +121,7 @@ public: : aRef->GetName(); } - SvMetaReference * GetRef() const { return aRef; } + SvMetaReference * GetRef() const { return aRef.get(); } void SetRef( SvMetaReference * pRef ) { aRef = pRef; } }; diff --git a/idl/inc/globals.hxx b/idl/inc/globals.hxx index e49e81ef07f5..ad8aee0c2e45 100644 --- a/idl/inc/globals.hxx +++ b/idl/inc/globals.hxx @@ -88,7 +88,7 @@ inline SvStringHashEntry * SvHash_##Name() \ { \ if( !GetIdlApp().pGlobalNames ) \ GetIdlApp().pGlobalNames = new SvGlobalHashNames(); \ - return GetIdlApp().pGlobalNames->MM_##Name; \ + return GetIdlApp().pGlobalNames->MM_##Name.get(); \ } HASH_INLINE(module) diff --git a/idl/inc/object.hxx b/idl/inc/object.hxx index d6c39055973a..6c8c90b3a74a 100644 --- a/idl/inc/object.hxx +++ b/idl/inc/object.hxx @@ -43,7 +43,7 @@ public: void SetClass( SvMetaClass * pClass ) { xClass = pClass; } SvMetaClass * GetClass() const - { return xClass; } + { return xClass.get(); } }; |