Kaydet (Commit) 2c0e1917 authored tarafından Caolán McNamara's avatar Caolán McNamara

V801: Decreased performance

Change-Id: I48c716d87ce3e46f61393ae140bf2e05d9fd6241
üst db041f15
......@@ -390,9 +390,8 @@ public:
sal_Int8 >& aIdentifier )
throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
static ScTabViewObj* getImplementation( const com::sun::star::uno::Reference<
com::sun::star::uno::XInterface> xObj );
static const css::uno::Sequence<sal_Int8>& getUnoTunnelId();
static ScTabViewObj* getImplementation(const css::uno::Reference<css::uno::XInterface>& rObj);
// XTypeProvider
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes()
......
......@@ -135,7 +135,7 @@ std::string StackVarEnumToString(StackVar const e)
}
#ifdef SAL_DETAIL_ENABLE_LOG_INFO
std::string linenumberify(const std::string s)
std::string linenumberify(const std::string& s)
{
std::stringstream ss;
int linenumber = 1;
......
......@@ -2231,10 +2231,10 @@ const uno::Sequence<sal_Int8>& ScTabViewObj::getUnoTunnelId()
return theScTabViewObjUnoTunnelId::get().getSeq();
}
ScTabViewObj* ScTabViewObj::getImplementation( const uno::Reference<uno::XInterface> xObj )
ScTabViewObj* ScTabViewObj::getImplementation(const uno::Reference<uno::XInterface>& rObj)
{
ScTabViewObj* pRet = NULL;
uno::Reference<lang::XUnoTunnel> xUT( xObj, uno::UNO_QUERY );
uno::Reference<lang::XUnoTunnel> xUT(rObj, uno::UNO_QUERY);
if (xUT.is())
pRet = reinterpret_cast<ScTabViewObj*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething(getUnoTunnelId())));
return pRet;
......
......@@ -164,9 +164,9 @@ void getRangeFromDataSource( uno::Reference< chart2::data::XDataSource > xDataSo
}
}
void getRangeFromErrorBar(const uno::Reference< chart2::XChartDocument > xChartDoc, std::vector<OUString>& rRangeRep)
void getRangeFromErrorBar(const uno::Reference< chart2::XChartDocument >& rChartDoc, std::vector<OUString>& rRangeRep)
{
uno::Reference <chart2::XDiagram > xDiagram = xChartDoc->getFirstDiagram();
uno::Reference <chart2::XDiagram > xDiagram = rChartDoc->getFirstDiagram();
if(!xDiagram.is())
return;
......
......@@ -32,7 +32,7 @@
using namespace com::sun::star;
ImplXMLSignatureListener::ImplXMLSignatureListener( const Link& rCreationResultListenerListener, const Link rVerifyResultListenerListener, const Link rStartSignatureElement )
ImplXMLSignatureListener::ImplXMLSignatureListener(const Link& rCreationResultListenerListener, const Link& rVerifyResultListenerListener, const Link& rStartSignatureElement)
{
maCreationResultListenerListener = rCreationResultListenerListener;
maVerifyResultListenerListener = rVerifyResultListenerListener;
......
......@@ -57,7 +57,7 @@ private:
com::sun::star::xml::sax::XDocumentHandler > m_xNextHandler;
public:
ImplXMLSignatureListener( const Link& rCreationResultListenerListener, const Link rVerifyResultListenerListener, const Link rStartVerifySignatureElement );
ImplXMLSignatureListener(const Link& rCreationResultListenerListener, const Link& rVerifyResultListenerListener, const Link& rStartVerifySignatureElement);
virtual ~ImplXMLSignatureListener();
void setNextHandler(com::sun::star::uno::Reference<
......
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