summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-02-28 21:50:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-02-28 21:50:31 +0100
commitecf9b211ff2528e2b8e5226dcd50d7c13164bb0f (patch)
treeb4c5390c2f41c645b4812030cb2b03a25dd22bde /ucbhelper
parent0f599b89a744defa80dcec1859df41670bac519e (diff)
No need for a command ID
...as there is no infrastructure to abort ucbhelper commands anyway Change-Id: I7796386a4b931c24ff2cc66a706d5c0182cb82e5
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/client/content.cxx29
1 files changed, 3 insertions, 26 deletions
diff --git a/ucbhelper/source/client/content.cxx b/ucbhelper/source/client/content.cxx
index 18219f52af6d..62a384485ffc 100644
--- a/ucbhelper/source/client/content.cxx
+++ b/ucbhelper/source/client/content.cxx
@@ -173,14 +173,13 @@ friend class ContentEventListener_Impl;
Reference< XCommandEnvironment > m_xEnv;
Reference< XContentEventListener > m_xContentEventListener;
mutable osl::Mutex m_aMutex;
- sal_Int32 m_nCommandId;
private:
void reinit( const Reference< XContent >& xContent );
void disposing(const EventObject& Source);
public:
- Content_Impl() : m_nCommandId( 0 ) {};
+ Content_Impl() {};
Content_Impl( const Reference< XComponentContext >& rCtx,
const Reference< XContent >& rContent,
const Reference< XCommandEnvironment >& rEnv );
@@ -190,7 +189,6 @@ public:
const rtl::OUString& getURL() const;
Reference< XContent > getContent();
Reference< XCommandProcessor > getCommandProcessor();
- sal_Int32 getCommandId();
Reference< XComponentContext > getComponentContext()
{ assert(m_xCtx.is()); return m_xCtx; }
@@ -1088,8 +1086,7 @@ Content_Impl::Content_Impl( const Reference< XComponentContext >& rCtx,
const Reference< XCommandEnvironment >& rEnv )
: m_xCtx( rCtx ),
m_xContent( rContent ),
- m_xEnv( rEnv ),
- m_nCommandId( 0 )
+ m_xEnv( rEnv )
{
assert(rCtx.is());
if ( m_xContent.is() )
@@ -1111,7 +1108,6 @@ void Content_Impl::reinit( const Reference< XContent >& xContent )
osl::MutexGuard aGuard( m_aMutex );
m_xCommandProcessor = 0;
- m_nCommandId = 0;
// #92581# - Don't reset m_aURL!!!
@@ -1175,7 +1171,6 @@ void Content_Impl::disposing( const EventObject& Source )
xContent = m_xContent;
- m_nCommandId = 0;
m_aURL = rtl::OUString();
m_xCommandProcessor = 0;
m_xContent = 0;
@@ -1267,24 +1262,6 @@ Reference< XCommandProcessor > Content_Impl::getCommandProcessor()
}
//=========================================================================
-sal_Int32 Content_Impl::getCommandId()
-{
- if ( m_nCommandId == 0 )
- {
- osl::MutexGuard aGuard( m_aMutex );
-
- if ( m_nCommandId == 0 )
- {
- Reference< XCommandProcessor > xProc = getCommandProcessor();
- if ( xProc.is() )
- m_nCommandId = xProc->createCommandIdentifier();
- }
- }
-
- return m_nCommandId;
-}
-
-//=========================================================================
Any Content_Impl::executeCommand( const Command& rCommand )
{
Reference< XCommandProcessor > xProc = getCommandProcessor();
@@ -1292,7 +1269,7 @@ Any Content_Impl::executeCommand( const Command& rCommand )
return Any();
// Execute command
- return xProc->execute( rCommand, getCommandId(), m_xEnv );
+ return xProc->execute( rCommand, 0, m_xEnv );
}
//=========================================================================