loplugin:passstuffbyref in lotuswordpro..pyuno
Change-Id: I9cd7a98d74b1896951124740b66d873ca41cceae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176197 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
@@ -522,7 +522,7 @@ void LwpFootnoteOptions::RegisterEndnoteStyle()
|
||||
/**
|
||||
* @descr Get continue on message
|
||||
*/
|
||||
OUString LwpFootnoteOptions::GetContinuedOnMessage() const
|
||||
const OUString& LwpFootnoteOptions::GetContinuedOnMessage() const
|
||||
{
|
||||
if (m_ContinuedOnMessage.HasValue())
|
||||
{
|
||||
@@ -535,7 +535,7 @@ OUString LwpFootnoteOptions::GetContinuedOnMessage() const
|
||||
/**
|
||||
* @descr Get continue from message
|
||||
*/
|
||||
OUString LwpFootnoteOptions::GetContinuedFromMessage() const
|
||||
const OUString& LwpFootnoteOptions::GetContinuedFromMessage() const
|
||||
{
|
||||
if (m_ContinuedFromMessage.HasValue())
|
||||
{
|
||||
|
||||
@@ -269,8 +269,8 @@ public:
|
||||
LwpFootnoteSeparatorOptions& GetFootnoteSeparator(){ return m_FootnoteSeparator;}
|
||||
bool GetContinuedFrom() const { return ((m_nFlag & FO_CONTINUEFROM) != 0);}
|
||||
bool GetContinuedOn() const { return ((m_nFlag & FO_CONTINUEON) != 0);}
|
||||
OUString GetContinuedOnMessage() const;
|
||||
OUString GetContinuedFromMessage() const;
|
||||
const OUString & GetContinuedOnMessage() const;
|
||||
const OUString & GetContinuedFromMessage() const;
|
||||
void SetMasterPage(const OUString& strMasterPage){ m_strMasterPage = strMasterPage;}
|
||||
};
|
||||
|
||||
|
||||
@@ -105,9 +105,9 @@ public:
|
||||
|
||||
OUString const& GetBulletChar() const;
|
||||
|
||||
static OUString GetPrefix() { return OUString(); }
|
||||
static const OUString& GetPrefix() { return EMPTY_OUSTRING; }
|
||||
|
||||
static OUString GetSuffix() { return OUString(); }
|
||||
static const OUString& GetSuffix() { return EMPTY_OUSTRING; }
|
||||
|
||||
bool HasName();
|
||||
|
||||
|
||||
@@ -1546,10 +1546,10 @@ OUString GraphicExport::writeNewEntryToStorage(const Graphic& rGraphic, bool bRe
|
||||
|
||||
namespace
|
||||
{
|
||||
BitmapChecksum makeChecksumUniqueForSVG(BitmapChecksum const& rChecksum)
|
||||
BitmapChecksum makeChecksumUniqueForSVG(BitmapChecksum aChecksum)
|
||||
{
|
||||
// need to modify the checksum so we know it's for SVG - just invert it
|
||||
return ~rChecksum;
|
||||
return ~aChecksum;
|
||||
}
|
||||
|
||||
} // end anonymous namespace
|
||||
|
||||
@@ -26,7 +26,7 @@ public:
|
||||
oox::core::ContextHandlerRef onCreateContext(sal_Int32 nElementToken,
|
||||
const ::oox::AttributeList& rAttribs) override;
|
||||
|
||||
oox::drawingml::ShapePtr getShape() { return mpShapePtr; }
|
||||
const oox::drawingml::ShapePtr& getShape() { return mpShapePtr; }
|
||||
const bool& isFullWPGSupport() const { return m_bFullWPGSupport; };
|
||||
void setFullWPGSupport(bool bUse) { m_bFullWPGSupport = bUse; };
|
||||
|
||||
|
||||
@@ -128,7 +128,7 @@ public:
|
||||
|
||||
sal_Int32 GetStartKeyGenID() const { return m_nStartKeyGenerationID; }
|
||||
sal_Int32 GetEncAlgID() const { return m_nCommonEncryptionID; }
|
||||
::std::optional<sal_Int32> GetChecksumAlgID() const { return m_oChecksumDigestID; }
|
||||
const ::std::optional<sal_Int32> & GetChecksumAlgID() const { return m_oChecksumDigestID; }
|
||||
sal_Int32 GetDefaultDerivedKeySize() const {
|
||||
return ::GetDefaultDerivedKeySize(m_nCommonEncryptionID);
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ void fillStruct(
|
||||
}
|
||||
}
|
||||
|
||||
OUString getLibDir();
|
||||
const OUString & getLibDir();
|
||||
OUString getLibDirImpl()
|
||||
{
|
||||
OUString libDir;
|
||||
@@ -212,7 +212,7 @@ OUString getLibDirImpl()
|
||||
return libDir;
|
||||
}
|
||||
|
||||
OUString getLibDir()
|
||||
const OUString & getLibDir()
|
||||
{
|
||||
static OUString sLibDir = getLibDirImpl();
|
||||
return sLibDir;
|
||||
|
||||
Reference in New Issue
Block a user