summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 09:21:07 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-19 09:21:07 +0000
commitf5d97ef423f91d40a0aa3cfe47317af0799613ad (patch)
tree461b6d45ac6708c0f6bb86f7708f668cfdf53b01 /scripting
parent35f3eb36ffa096f85b07d2febb46b51c201e313e (diff)
INTEGRATION: CWS warnings01 (1.18.14); FILE MERGED
2006/01/06 08:58:27 ab 1.18.14.2: #i53898# Removed warnings for unxsols4/unxsols4.pro 2005/12/22 14:40:52 ab 1.18.14.1: #i53898# Removed warnings for unxlngi6, unxlngi6.pro
Diffstat (limited to 'scripting')
-rwxr-xr-xscripting/source/provider/MasterScriptProvider.cxx19
1 files changed, 11 insertions, 8 deletions
diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx
index d6f1c862f2cb..0eb6082c8b21 100755
--- a/scripting/source/provider/MasterScriptProvider.cxx
+++ b/scripting/source/provider/MasterScriptProvider.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: MasterScriptProvider.cxx,v $
*
- * $Revision: 1.18 $
+ * $Revision: 1.19 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 02:29:13 $
+ * last change: $Author: hr $ $Date: 2006-06-19 10:21:07 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -227,7 +227,7 @@ void MasterScriptProvider::createPkgProvider()
}
catch ( Exception& e )
{
- e;
+ (void)e;
OSL_TRACE("Exception creating MasterScriptProvider for uno_packages in context %s: %s",
::rtl::OUStringToOString( m_sCtxString,
RTL_TEXTENCODING_ASCII_US ).pData->buffer,
@@ -248,9 +248,6 @@ throw ( provider::ScriptFrameworkErrorException,
OUSTR( "MasterScriptProvider not initialised" ), Reference< XInterface >(),
scriptURI, OUSTR(""),
provider::ScriptFrameworkErrorType::UNKNOWN );
- throw RuntimeException(
- OUSTR( "MasterScriptProvider::getScript(), service object not initialised properly." ),
- Reference< XInterface >() );
}
// need to get the language from the string
@@ -367,12 +364,12 @@ throw ( provider::ScriptFrameworkErrorException,
}
else
{
- Reference< provider::XScriptProviderFactory > xFac(
+ Reference< provider::XScriptProviderFactory > xFac_(
m_xContext->getValueByName(
OUSTR( "/singletons/com.sun.star.script.provider.theMasterScriptProviderFactory") ), UNO_QUERY_THROW );
Reference< provider::XScriptProvider > xSP(
- xFac->createScriptProvider( makeAny( location ) ), UNO_QUERY_THROW );
+ xFac_->createScriptProvider( makeAny( location ) ), UNO_QUERY_THROW );
xScript = xSP->getScript( scriptURI );
}
@@ -666,6 +663,9 @@ MasterScriptProvider::removeByName( const ::rtl::OUString& Name ) throw ( contai
void SAL_CALL
MasterScriptProvider::replaceByName( const ::rtl::OUString& aName, const Any& aElement ) throw ( lang::IllegalArgumentException, container::NoSuchElementException, lang::WrappedTargetException, RuntimeException)
{
+ (void)aName;
+ (void)aElement;
+
// TODO needs implementing
if ( true )
{
@@ -677,6 +677,8 @@ MasterScriptProvider::replaceByName( const ::rtl::OUString& aName, const Any& aE
Any SAL_CALL
MasterScriptProvider::getByName( const ::rtl::OUString& aName ) throw ( container::NoSuchElementException, lang::WrappedTargetException, RuntimeException)
{
+ (void)aName;
+
// TODO needs to be implemented
Any result;
if ( true )
@@ -959,6 +961,7 @@ extern "C"
void SAL_CALL component_getImplementationEnvironment(
const sal_Char ** ppEnvTypeName, uno_Environment ** ppEnv )
{
+ (void)ppEnv;
*ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
}