summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-01-20 16:36:19 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-01-21 07:18:38 +0000
commit90d892664a6c49a8ae25a72ddccf54dba9d0e429 (patch)
treed9bb4a7307e349b88a4d528854abb44e4323f563 /include/vcl
parentea6fdbaeeb51ad695f1c3754b796b7273eb4baad (diff)
loplugin: unused return values
Change-Id: I4eb1f0c9245c04058fd5e47046f043f8840a79c7 Reviewed-on: https://gerrit.libreoffice.org/21628 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/pdfwriter.hxx35
-rw-r--r--include/vcl/slider.hxx4
-rw-r--r--include/vcl/svapp.hxx4
3 files changed, 9 insertions, 34 deletions
diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index 9d7304dc6be5..697ae91a4c3c 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -683,11 +683,8 @@ The following structure describes the permissions used in PDF security
resets the graphics state: MapMode, Font
Colors and other state information MUST
be set again or are undefined.
-
- @returns
- returns the page id of the new page
*/
- sal_Int32 NewPage( sal_Int32 nPageWidth = 0, sal_Int32 nPageHeight = 0, Orientation eOrientation = Inherit );
+ void NewPage( sal_Int32 nPageWidth = 0, sal_Int32 nPageHeight = 0, Orientation eOrientation = Inherit );
/** Play a metafile like an outputdevice would do
*/
struct PlayMetafileContext
@@ -959,12 +956,8 @@ The following structure describes the permissions used in PDF security
@param nDestId
the dest the link shall point to
- @returns
- 0 for success
- -1 in case the link id does not exist
- -2 in case the dest id does not exist
*/
- sal_Int32 SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId );
+ void SetLinkDest( sal_Int32 nLinkId, sal_Int32 nDestId );
/** Set the URL for a link
will change a dest type link to an URL type link if necessary
@param nLinkId
@@ -974,12 +967,8 @@ The following structure describes the permissions used in PDF security
the URL the link shall point to.
The URL will be parsed (and corrected) by the com.sun.star.util.URLTransformer
service; the result will then appear literally in the PDF file produced
-
- @returns
- 0 for success
- -1 in case the link id does not exist
*/
- sal_Int32 SetLinkURL( sal_Int32 nLinkId, const OUString& rURL );
+ void SetLinkURL( sal_Int32 nLinkId, const OUString& rURL );
/** Resolve link in logical structure
If a link is created after the corresponding visual appearance was drawn
@@ -1033,12 +1022,8 @@ The following structure describes the permissions used in PDF security
@param nNewParent
specifies which outline item will be the item's new parent.
Use 0 for reparenting to top level.
-
- @returns
- -1 if the item does not exist
- -2 if the new parent does not exist, item will be reparented to top level.
*/
- sal_Int32 SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent );
+ void SetOutlineItemParent( sal_Int32 nItem, sal_Int32 nNewParent );
/** Set an outline item's title text
@@ -1047,12 +1032,8 @@ The following structure describes the permissions used in PDF security
@param rText
sets the title text of the item
-
- @returns
- 0 if the item exists and the text was changed
- -1 if the item does not exist
*/
- sal_Int32 SetOutlineItemText( sal_Int32 nItem, const OUString& rText );
+ void SetOutlineItemText( sal_Int32 nItem, const OUString& rText );
/** Set an outline item's destination
@@ -1061,12 +1042,8 @@ The following structure describes the permissions used in PDF security
@param nDestID
specifies the item's new destination
-
- @returns
- -1 if the item does not exist
- -2 if the new dest does not exist, dest will remain unchanged
*/
- sal_Int32 SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID );
+ void SetOutlineItemDest( sal_Int32 nItem, sal_Int32 nDestID );
/** Create a new note on a page
diff --git a/include/vcl/slider.hxx b/include/vcl/slider.hxx
index e418357de6d4..cb0d226542b9 100644
--- a/include/vcl/slider.hxx
+++ b/include/vcl/slider.hxx
@@ -75,8 +75,8 @@ private:
SAL_DLLPRIVATE long ImplSlide( long nNewPos, bool bCallEndSlide );
SAL_DLLPRIVATE long ImplDoAction( bool bCallEndSlide );
SAL_DLLPRIVATE void ImplDoMouseAction( const Point& rPos, bool bCallAction = true );
- SAL_DLLPRIVATE long ImplDoSlide( long nNewPos );
- SAL_DLLPRIVATE long ImplDoSlideAction( ScrollType eScrollType );
+ SAL_DLLPRIVATE void ImplDoSlide( long nNewPos );
+ SAL_DLLPRIVATE void ImplDoSlideAction( ScrollType eScrollType );
SAL_DLLPRIVATE void ImplUpdateLinkedField();
public:
diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx
index 5e4db812ab65..2b7fe62e0bb7 100644
--- a/include/vcl/svapp.hxx
+++ b/include/vcl/svapp.hxx
@@ -429,11 +429,9 @@ public:
@param nError The error code identifier
- @returns sal_uInt16 value - if it is 0, then the error wasn't handled.
-
@see Abort
*/
- virtual sal_uInt16 Exception( sal_uInt16 nError );
+ virtual void Exception( sal_uInt16 nError );
/** Ends the program prematurely with an error message.