summaryrefslogtreecommitdiff
path: root/animations/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-10 11:04:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-10 17:39:52 +0100
commit557c0893f2f44340d24de48cbe793997c4c5443c (patch)
treec5d73802b1d91b40f8f99b585067edfab4af7144 /animations/source
parentacca15f7a0e06694af7f62dc4eca3023c4bcfca8 (diff)
animations: simplify deprecated XTypeProvider.getImplementationId
Change-Id: If677c147011799872cf5da2d148aacceebf5df42
Diffstat (limited to 'animations/source')
-rw-r--r--animations/source/animcore/animcore.cxx11
1 files changed, 1 insertions, 10 deletions
diff --git a/animations/source/animcore/animcore.cxx b/animations/source/animcore/animcore.cxx
index 8aef03d388fa..f354394dc436 100644
--- a/animations/source/animcore/animcore.cxx
+++ b/animations/source/animcore/animcore.cxx
@@ -51,7 +51,6 @@
#include <cppuhelper/weakref.hxx>
#include <cppuhelper/implbase1.hxx>
-#include <rtl/uuid.h>
#include <osl/mutex.hxx>
#include <list>
@@ -295,7 +294,6 @@ private:
// for XTypeProvider
static Sequence< Type >* mpTypes[12];
- static Sequence< sal_Int8 >* mpId[12];
// attributes for the XAnimationNode interface implementation
Any maBegin, maDuration, maEnd, maEndSync, maRepeatCount, maRepeatDuration;
@@ -405,7 +403,6 @@ Any SAL_CALL TimeContainerEnumeration::nextElement()
Sequence< Type >* AnimationNode::mpTypes[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
-Sequence< sal_Int8 >* AnimationNode::mpId[] = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL };
AnimationNode::AnimationNode( sal_Int16 nNodeType )
: maChangeListener(maMutex),
@@ -643,10 +640,6 @@ void AnimationNode::initTypeProvider( sal_Int16 nNodeType ) throw()
if(! mpTypes[nNodeType] )
{
- // create id
- mpId[nNodeType] = new Sequence< sal_Int8 >( 16 );
- rtl_createUuid( (sal_uInt8 *)mpId[nNodeType]->getArray(), 0, sal_True );
-
static const sal_Int32 type_numbers[] =
{
7, // CUSTOM
@@ -728,9 +721,7 @@ Sequence< Type > AnimationNode::getTypes() throw (RuntimeException, std::excepti
Sequence< sal_Int8 > AnimationNode::getImplementationId() throw (RuntimeException, std::exception)
{
- if (! mpId[mnNodeType])
- initTypeProvider(mnNodeType);
- return *mpId[mnNodeType];
+ return css::uno::Sequence<sal_Int8>();
}