Kaydet (Commit) 65a43d68 authored tarafından Matúš Kukan's avatar Matúš Kukan

Linking globals named 'sDocCtxName': symbol multiply defined!

Change-Id: Ib199ecb02b0e0f8382fcf1702652d9ad0fcb1765
üst ffaa20a1
...@@ -42,16 +42,15 @@ using namespace ::ooo::vba; ...@@ -42,16 +42,15 @@ using namespace ::ooo::vba;
// ============================================================================= // =============================================================================
//ScVbaGlobals::ScVbaGlobals( css::uno::Reference< css::uno::XComponentContext >const& rxContext, ) : ScVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext ) //ScVbaGlobals::ScVbaGlobals( css::uno::Reference< css::uno::XComponentContext >const& rxContext, ) : ScVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext )
OUString sDocCtxName( "ExcelDocumentContext" );
ScVbaGlobals::ScVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& rxContext ) : ScVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext, sDocCtxName ) ScVbaGlobals::ScVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& rxContext ) : ScVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext, "ExcelDocumentContext" )
{ {
OSL_TRACE("ScVbaGlobals::ScVbaGlobals()"); OSL_TRACE("ScVbaGlobals::ScVbaGlobals()");
uno::Sequence< beans::PropertyValue > aInitArgs( 2 ); uno::Sequence< beans::PropertyValue > aInitArgs( 2 );
aInitArgs[ 0 ].Name = "Application"; aInitArgs[ 0 ].Name = "Application";
aInitArgs[ 0 ].Value = uno::makeAny( getApplication() ); aInitArgs[ 0 ].Value = uno::makeAny( getApplication() );
aInitArgs[ 1 ].Name = sDocCtxName; aInitArgs[ 1 ].Name = "ExcelDocumentContext";
aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) ); aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) );
init( aInitArgs ); init( aInitArgs );
......
...@@ -31,19 +31,17 @@ using namespace ::com::sun::star::uno; ...@@ -31,19 +31,17 @@ using namespace ::com::sun::star::uno;
using namespace ::ooo::vba; using namespace ::ooo::vba;
OUString sDocCtxName("WordDocumentContext");
// ============================================================================= // =============================================================================
// SwVbaGlobals // SwVbaGlobals
// ============================================================================= // =============================================================================
SwVbaGlobals::SwVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& rxContext ) : SwVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext, sDocCtxName ) SwVbaGlobals::SwVbaGlobals( uno::Sequence< uno::Any > const& aArgs, uno::Reference< uno::XComponentContext >const& rxContext ) : SwVbaGlobals_BASE( uno::Reference< XHelperInterface >(), rxContext, "WordDocumentContext" )
{ {
OSL_TRACE("SwVbaGlobals::SwVbaGlobals()"); OSL_TRACE("SwVbaGlobals::SwVbaGlobals()");
uno::Sequence< beans::PropertyValue > aInitArgs( 2 ); uno::Sequence< beans::PropertyValue > aInitArgs( 2 );
aInitArgs[ 0 ].Name = "Application"; aInitArgs[ 0 ].Name = "Application";
aInitArgs[ 0 ].Value = uno::makeAny( getApplication() ); aInitArgs[ 0 ].Value = uno::makeAny( getApplication() );
aInitArgs[ 1 ].Name = sDocCtxName; aInitArgs[ 1 ].Name = "WordDocumentContext";
aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) ); aInitArgs[ 1 ].Value = uno::makeAny( getXSomethingFromArgs< frame::XModel >( aArgs, 0 ) );
init( aInitArgs ); init( aInitArgs );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment