summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-03 14:52:45 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-03-04 06:13:25 +0000
commitf5e131b2bcd2c88a47e5988d5f319bffd767c4dc (patch)
treedfa4853d09b4327c4c812dfbe3b44ec1c6447060 /include
parentfee4fe8e589e101140d9b318ac757825bf836506 (diff)
loplugin:unuseddefaultparams in vcl and xmloff
and teach the plugin about code that takes the address of a function Change-Id: Ia9d5afef44520aca236659e8176f1e27135ef4fc Reviewed-on: https://gerrit.libreoffice.org/22861 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/button.hxx2
-rw-r--r--include/vcl/combobox.hxx4
-rw-r--r--include/vcl/menu.hxx3
-rw-r--r--include/vcl/outdev.hxx5
-rw-r--r--include/vcl/texteng.hxx4
-rw-r--r--include/vcl/toolbox.hxx2
-rw-r--r--include/xmloff/shapeexport.hxx2
-rw-r--r--include/xmloff/xmlexp.hxx3
8 files changed, 11 insertions, 14 deletions
diff --git a/include/vcl/button.hxx b/include/vcl/button.hxx
index 91ba1e3c7916..bf19a6a9e953 100644
--- a/include/vcl/button.hxx
+++ b/include/vcl/button.hxx
@@ -297,7 +297,7 @@ private:
SAL_DLLPRIVATE void ImplDraw( OutputDevice* pDev, DrawFlags nDrawFlags,
const Point& rPos, const Size& rSize,
const Size& rImageSize, Rectangle& rStateRect,
- Rectangle& rMouseRect, bool bLayout = false );
+ Rectangle& rMouseRect );
SAL_DLLPRIVATE void ImplDrawRadioButton(vcl::RenderContext& rRenderContext );
SAL_DLLPRIVATE void ImplUncheckAllOther();
SAL_DLLPRIVATE Size ImplGetRadioImageSize() const;
diff --git a/include/vcl/combobox.hxx b/include/vcl/combobox.hxx
index 83961566a762..77754b748cba 100644
--- a/include/vcl/combobox.hxx
+++ b/include/vcl/combobox.hxx
@@ -137,8 +137,8 @@ public:
Size CalcBlockSize( sal_uInt16 nColumns, sal_uInt16 nLines ) const;
void GetMaxVisColumnsAndLines( sal_uInt16& rnCols, sal_uInt16& rnLines ) const;
- void SetMRUEntries( const OUString& rEntries, sal_Unicode cSep = ';' );
- OUString GetMRUEntries( sal_Unicode cSep = ';' ) const;
+ void SetMRUEntries( const OUString& rEntries );
+ OUString GetMRUEntries() const;
void SetMaxMRUCount( sal_Int32 n );
sal_Int32 GetMaxMRUCount() const;
void SetEntryData( sal_Int32 nPos, void* pNewData );
diff --git a/include/vcl/menu.hxx b/include/vcl/menu.hxx
index f8d44e0c1567..4b1682f08a59 100644
--- a/include/vcl/menu.hxx
+++ b/include/vcl/menu.hxx
@@ -251,8 +251,7 @@ public:
void InsertItem(const ResId& rResId);
void InsertItem(const OUString& rCommand,
const css::uno::Reference<css::frame::XFrame>& rFrame,
- MenuItemBits nBits = MenuItemBits::NONE,
- const OString &rIdent = OString());
+ MenuItemBits nBits = MenuItemBits::NONE);
void InsertSeparator(const OString &rIdent = OString(), sal_uInt16 nPos = MENU_APPEND);
void RemoveItem( sal_uInt16 nPos );
void CopyItem(const Menu& rMenu, sal_uInt16 nPos );
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index cb9e0da762d3..007c9857c5d3 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1130,8 +1130,7 @@ public:
OUString GetEllipsisString( const OUString& rStr, long nMaxWidth,
DrawTextFlags nStyle = DrawTextFlags::EndEllipsis ) const;
- long GetCtrlTextWidth( const OUString& rStr, sal_Int32 nIndex = 0,
- sal_Int32 nLen = -1 ) const;
+ long GetCtrlTextWidth( const OUString& rStr, sal_Int32 nIndex = 0 ) const;
static OUString GetNonMnemonicString( const OUString& rStr, sal_Int32& rMnemonicPos );
@@ -1197,7 +1196,7 @@ public:
bool GetCaretPositions( const OUString&, long* pCaretXArray,
sal_Int32 nIndex, sal_Int32 nLen,
- long* pDXAry = nullptr, long nWidth = 0 ) const;
+ long* pDXAry = nullptr ) const;
void DrawStretchText( const Point& rStartPt, sal_uLong nWidth,
const OUString& rStr,
sal_Int32 nIndex = 0, sal_Int32 nLen = -1);
diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx
index ec77f0632871..eaaa6213d8fd 100644
--- a/include/vcl/texteng.hxx
+++ b/include/vcl/texteng.hxx
@@ -149,7 +149,7 @@ protected:
TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, bool bOverwrite = false );
TextPaM ImpInsertText( const TextSelection& rSel, const OUString& rText );
TextPaM ImpInsertParaBreak( const TextSelection& rTextSelection );
- TextPaM ImpInsertParaBreak( const TextPaM& rPaM, bool bKeepEndingAttribs = true );
+ TextPaM ImpInsertParaBreak( const TextPaM& rPaM );
void ImpRemoveChars( const TextPaM& rPaM, sal_Int32 nChars );
TextPaM ImpConnectParagraphs( sal_uInt32 nLeft, sal_uInt32 nRight );
void ImpRemoveParagraph( sal_uInt32 nPara );
@@ -201,7 +201,7 @@ protected:
long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, sal_uInt16 nTextPortion );
long ImpGetXPos( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, bool bPreferPortionStart = false );
long ImpGetOutputOffset( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, sal_Int32 nIndex2 );
- sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32* pStart = nullptr );
+ sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos );
static void ImpInitLayoutMode( OutputDevice* pOutDev );
TxtAlign ImpGetAlign() const;
diff --git a/include/vcl/toolbox.hxx b/include/vcl/toolbox.hxx
index 18019e557326..f81673cc2ffd 100644
--- a/include/vcl/toolbox.hxx
+++ b/include/vcl/toolbox.hxx
@@ -386,7 +386,7 @@ public:
void EnableItem( sal_uInt16 nItemId, bool bEnable = true );
bool IsItemEnabled( sal_uInt16 nItemId ) const;
- void TriggerItem( sal_uInt16 nItemId, bool bShift = false );
+ void TriggerItem( sal_uInt16 nItemId );
/// Shows or hides items.
void ShowItem(sal_uInt16 nItemId, bool bVisible = true);
diff --git a/include/xmloff/shapeexport.hxx b/include/xmloff/shapeexport.hxx
index 795d19c95f2e..97699b86ca14 100644
--- a/include/xmloff/shapeexport.hxx
+++ b/include/xmloff/shapeexport.hxx
@@ -235,7 +235,7 @@ private:
SAL_DLLPRIVATE void ImpExportOLE2Shape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr, SvXMLAttributeList* pAttrList = nullptr );
SAL_DLLPRIVATE void ImpExportPageShape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
SAL_DLLPRIVATE void ImpExportCaptionShape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
- SAL_DLLPRIVATE void ImpExport3DShape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT );
+ SAL_DLLPRIVATE void ImpExport3DShape(const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType );
SAL_DLLPRIVATE void ImpExportFrameShape( const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
SAL_DLLPRIVATE void ImpExportPluginShape( const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
SAL_DLLPRIVATE void ImpExportAppletShape( const css::uno::Reference< css::drawing::XShape >& xShape, XmlShapeType eShapeType, XMLShapeExportFlags nFeatures = SEF_DEFAULT, css::awt::Point* pRefPoint = nullptr );
diff --git a/include/xmloff/xmlexp.hxx b/include/xmloff/xmlexp.hxx
index 599e3dd6fe39..1ec40d1e4efe 100644
--- a/include/xmloff/xmlexp.hxx
+++ b/include/xmloff/xmlexp.hxx
@@ -380,8 +380,7 @@ public:
instead of Locale.
*/
void AddLanguageTagAttributes( sal_uInt16 nPrefix, sal_uInt16 nPrefixRfc,
- const LanguageTag& rLanguageTag, bool bWriteEmpty,
- enum ::xmloff::token::XMLTokenEnum eClass = ::xmloff::token::XML_LANGUAGE );
+ const LanguageTag& rLanguageTag, bool bWriteEmpty );
// add several attributes to the common attribute list
void AddAttributeList( const css::uno::Reference<