diff options
Diffstat (limited to 'scripting/source')
-rw-r--r-- | scripting/source/basprov/basmethnode.cxx | 3 | ||||
-rw-r--r-- | scripting/source/stringresource/stringresource.cxx | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/basprov/basmethnode.cxx b/scripting/source/basprov/basmethnode.cxx index 26ed5f08ed80..9ac68be5faf8 100644 --- a/scripting/source/basprov/basmethnode.cxx +++ b/scripting/source/basprov/basmethnode.cxx @@ -192,7 +192,7 @@ namespace basprov } OUString sDocURL, sLibName, sModName; - sal_uInt16 nLine1 = 0, nLine2; + sal_uInt16 nLine1 = 0; if ( !m_bIsAppScript ) { @@ -215,6 +215,7 @@ namespace basprov if ( m_pMethod ) { + sal_uInt16 nLine2; m_pMethod->GetLineRange( nLine1, nLine2 ); SbModule* pModule = m_pMethod->GetModule(); if ( pModule ) diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx index 217536d66c55..455174f2eff8 100644 --- a/scripting/source/stringresource/stringresource.cxx +++ b/scripting/source/stringresource/stringresource.cxx @@ -886,12 +886,11 @@ void StringResourcePersistenceImpl::implStoreAtStorage Reference< io::XStream > xElementStream = Storage->openStreamElement( aStreamName, ElementModes::READWRITE ); - OUString aPropName("MediaType"); - uno::Reference< beans::XPropertySet > xProps( xElementStream, uno::UNO_QUERY ); OSL_ENSURE( xProps.is(), "The StorageStream must implement XPropertySet interface!" ); if ( xProps.is() ) { + OUString aPropName("MediaType"); xProps->setPropertyValue( aPropName, uno::makeAny( OUString("text/plain") ) ); aPropName = "UseCommonStoragePasswordEncryption"; |