[Libreoffice-commits] .: sc/source
Kohei Yoshida
kohei at kemper.freedesktop.org
Mon Nov 8 11:59:27 PST 2010
sc/source/filter/excel/xiname.cxx | 4 +--
sc/source/filter/xcl97/xcl97rec.cxx | 40 ------------------------------------
sc/source/ui/vba/excelvbahelper.cxx | 2 -
3 files changed, 4 insertions(+), 42 deletions(-)
New commits:
commit 0ea0e93bcf72e295a0ecdcb78c22fa336a017364
Author: René Kjellerup <rk.katana.steel at gmail.com>
Date: Mon Nov 8 20:39:11 2010 +0100
comment crean up in sc
cleaned some added comments from silencing the compiler.
WritePicPr(...) has been removed since it seems unused by all
accounts.
diff --git a/sc/source/filter/excel/xiname.cxx b/sc/source/filter/excel/xiname.cxx
index a7726a1..111f9da 100644
--- a/sc/source/filter/excel/xiname.cxx
+++ b/sc/source/filter/excel/xiname.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -232,7 +232,7 @@ XclImpName::XclImpName( XclImpStream& rStrm, sal_uInt16 nXclNameIdx ) :
// discard deleted ranges ( for the moment at least )
if ( pData->IsValidReference( aRange ) )
{
- /* ScExtTabSettings& rTabSett = */ GetExtDocOptions().GetOrCreateTabSettings( nXclTab );
+ GetExtDocOptions().GetOrCreateTabSettings( nXclTab );
// create a mapping between the unmodified localname to
// the name in the global name container for named ranges
OSL_TRACE(" mapping local name to global name for tab %d which exists? %s", nXclTab, GetDoc().HasTable( mnScTab ) ? "true" : "false" );
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index eee05ba..fee4fa8 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -972,44 +972,6 @@ void XclObjAny::WriteFromTo( XclExpXmlStream& rStrm, const XclObjAny& rObj )
WriteFromTo( rStrm, rObj.GetShape(), rObj.GetTab() );
}
-/* is this function (WritePicPr) exported or only local, if such I'll remove it */
-/*
-static void
-WritePicPr( sax_fastparser::FSHelperPtr pDrawing, sal_Int32 nId, Reference< XPropertySet > xPropSet )
-{
- pDrawing->startElement( FSNS( XML_xdr, XML_nvPicPr ),
- FSEND );
- OUString sName, sDescr;
- xPropSet->getPropertyValue( XclXmlUtils::ToOUString( "Name" ) ) >>= sName;
- xPropSet->getPropertyValue( XclXmlUtils::ToOUString( "Description" ) ) >>= sDescr;
- pDrawing->singleElement( FSNS( XML_xdr, XML_cNvPr ),
- XML_id, OString::valueOf( nId ).getStr(),
- XML_name, XclXmlUtils::ToOString( sName ).getStr(),
- XML_descr, XclXmlUtils::ToOString( sDescr ).getStr(),
- FSEND );
- // OOXTODO: //xdr:cNvPr children: XML_extLst, XML_hlinkClick, XML_hlinkHover
- pDrawing->startElement( FSNS( XML_xdr, XML_cNvPicPr ),
- // OOXTODO: FSNS( XML_xdr, XML_preferRelativeSize )
- FSEND );
- // OOXTODO: XML_extLst
- pDrawing->singleElement( FSNS( XML_a, XML_picLocks ),
- // OOXTODO: XML_noGrp,
- // OOXTODO: XML_noSelect,
- // OOXTODO: XML_noRot,
- // OOXTODO: XML_noChangeAspect,
- // OOXTODO: XML_noMove,
- // OOXTODO: XML_noResize,
- // OOXTODO: XML_noEditPoints,
- // OOXTODO: XML_noAdjustHandles,
- // OOXTODO: XML_noChangeArrowheads,
- // OOXTODO: XML_noChangeShapeType,
- // OOXTODO: XML_noCrop,
- FSEND );
- pDrawing->endElement( FSNS( XML_xdr, XML_cNvPicPr ) );
- pDrawing->endElement( FSNS( XML_xdr, XML_nvPicPr ) );
-}
-*/
-
static const char*
GetEditAs( XclObjAny& rObj )
{
diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx
index b3213a7..99fda2b 100644
--- a/sc/source/ui/vba/excelvbahelper.cxx
+++ b/sc/source/ui/vba/excelvbahelper.cxx
@@ -377,7 +377,7 @@ void CompileExcelFormulaToODF( ScDocument* pDoc, const String& rOldFormula, Stri
}
ScCompiler aCompiler( pDoc, ScAddress() );
aCompiler.SetGrammar( excel::GetFormulaGrammar( pDoc, ScAddress(), uno::Any( rtl::OUString( rOldFormula ) ) ) );
- /* ScTokenArray* pCode = */ aCompiler.CompileString( rOldFormula ); // ignore the return ?
+ aCompiler.CompileString( rOldFormula );
aCompiler.SetGrammar( formula::FormulaGrammar::GRAM_PODF_A1 );
aCompiler.CreateStringFromTokenArray( rNewFormula );
}
More information about the Libreoffice-commits
mailing list