diff options
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/vba/vbaglobals.cxx | 2 | ||||
-rw-r--r-- | sc/source/ui/vba/vbahelper.cxx | 10 |
2 files changed, 2 insertions, 10 deletions
diff --git a/sc/source/ui/vba/vbaglobals.cxx b/sc/source/ui/vba/vbaglobals.cxx index 12e8230ae3d2..b0159503071f 100644 --- a/sc/source/ui/vba/vbaglobals.cxx +++ b/sc/source/ui/vba/vbaglobals.cxx @@ -58,7 +58,6 @@ ScVbaGlobals::~ScVbaGlobals() uno::Reference<excel::XApplication > const & ScVbaGlobals::getApplication() throw (uno::RuntimeException) { -// SAL_WARNx("sc", "In ScVbaGlobals::getApplication"); if ( !mxApplication.is() ) mxApplication.set( new ScVbaApplication( mxContext) ); return mxApplication; @@ -73,7 +72,6 @@ ScVbaGlobals::getExcel() throw (uno::RuntimeException, std::exception) uno::Reference< excel::XWorkbook > SAL_CALL ScVbaGlobals::getActiveWorkbook() throw (uno::RuntimeException, std::exception) { -// SAL_WARNx("sc", "In ScVbaGlobals::getActiveWorkbook"); uno::Reference< excel::XWorkbook > xWorkbook( getApplication()->getActiveWorkbook(), uno::UNO_QUERY); if ( xWorkbook.is() ) { diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx index 2c2e6bb9b605..65dc4cca2292 100644 --- a/sc/source/ui/vba/vbahelper.cxx +++ b/sc/source/ui/vba/vbahelper.cxx @@ -236,7 +236,7 @@ getCurrentDocument() throw (uno::RuntimeException) SbxObject* basicChosen = pBasic ; if ( basicChosen == NULL) { - SAL_WARNx("sc", "getModelFromBasic() StarBASIC* is NULL" ); + SAL_WARN("sc", "getModelFromBasic() StarBASIC* is NULL" ); return xModel; } SbxObject* p = pBasic; @@ -272,16 +272,10 @@ getCurrentDocument() throw (uno::RuntimeException) } return xModel; } - else - { - SAL_WARNx("sc", "Have model ThisComponent points to url %s", - OUStringToOString( xModel->getURL(), - RTL_TEXTENCODING_ASCII_US ).pData->buffer ); - } } else { - SAL_WARNx("sc", "Failed to get ThisComponent"); + SAL_WARN("sc", "Failed to get ThisComponent"); throw uno::RuntimeException( "Can't determine the currently selected document" ); } return xModel; |