summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/tools/inetmime.hxx4
-rw-r--r--include/tools/inetmsg.hxx4
-rw-r--r--include/tools/link.hxx1
-rw-r--r--include/tools/multisel.hxx6
-rw-r--r--include/tools/pstm.hxx2
-rw-r--r--include/tools/rc.hxx4
-rw-r--r--include/tools/ref.hxx2
-rw-r--r--include/tools/resid.hxx3
-rw-r--r--include/tools/stream.hxx9
-rw-r--r--include/tools/urlobj.hxx5
-rw-r--r--include/tools/vcompat.hxx1
-rw-r--r--include/tools/vector2d.hxx92
-rw-r--r--include/tools/zcodec.hxx4
13 files changed, 15 insertions, 122 deletions
diff --git a/include/tools/inetmime.hxx b/include/tools/inetmime.hxx
index 1c86055c361d..1bc2404025c1 100644
--- a/include/tools/inetmime.hxx
+++ b/include/tools/inetmime.hxx
@@ -255,10 +255,8 @@ private:
@param pOctets A null terminated sequence of octets, must not be
null.
-
- @return The length of pOctets (without the terminating null).
*/
- sal_Size writeSequence(const sal_Char * pSequence);
+ void writeSequence(const sal_Char * pSequence);
/** Write a sequence of octets.
diff --git a/include/tools/inetmsg.hxx b/include/tools/inetmsg.hxx
index 996e3348dad7..ae7f23ce49af 100644
--- a/include/tools/inetmsg.hxx
+++ b/include/tools/inetmsg.hxx
@@ -174,8 +174,8 @@ public:
}
INetMIMEMessage* GetParent() const { return pParent; }
- bool EnableAttachMultipartFormDataChild();
- bool AttachChild (
+ void EnableAttachMultipartFormDataChild();
+ void AttachChild (
INetMIMEMessage& rChildMsg, bool bOwner = true );
const OString& GetMultipartBoundary() const { return m_aBoundary; }
diff --git a/include/tools/link.hxx b/include/tools/link.hxx
index 584f963d938f..3eaea7b1ec31 100644
--- a/include/tools/link.hxx
+++ b/include/tools/link.hxx
@@ -101,7 +101,6 @@ public:
bool operator ==(Link const & other) const
{ return function_ == other.function_ && instance_ == other.instance_; };
- bool operator !=(Link const & other) const { return !operator ==(other); };
void *GetInstance() const { return instance_; }
private:
diff --git a/include/tools/multisel.hxx b/include/tools/multisel.hxx
index 3b6dafc3643f..633f50714d1a 100644
--- a/include/tools/multisel.hxx
+++ b/include/tools/multisel.hxx
@@ -44,7 +44,7 @@ private:
TOOLS_DLLPRIVATE void ImplClear();
TOOLS_DLLPRIVATE size_t ImplFindSubSelection( long nIndex ) const;
- TOOLS_DLLPRIVATE bool ImplMergeSubSelections( size_t nPos1, size_t nPos2 );
+ TOOLS_DLLPRIVATE void ImplMergeSubSelections( size_t nPos1, size_t nPos2 );
TOOLS_DLLPRIVATE long ImplFwdUnselected();
public:
@@ -55,10 +55,6 @@ public:
MultiSelection& operator= ( const MultiSelection& rOrig );
bool operator== ( MultiSelection& rOrig );
- bool operator!= ( MultiSelection& rOrig )
- { return !operator==( rOrig ); }
- bool operator !() const
- { return nSelCount == 0; }
void SelectAll( bool bSelect = true );
bool Select( long nIndex, bool bSelect = true );
diff --git a/include/tools/pstm.hxx b/include/tools/pstm.hxx
index e1e584334bc7..92b5349e493e 100644
--- a/include/tools/pstm.hxx
+++ b/include/tools/pstm.hxx
@@ -145,7 +145,7 @@ class TOOLS_DLLPUBLIC SvPersistStream : public SvStream
protected:
void WriteObj( sal_uInt8 nHdr, SvPersistBase * pObj );
- sal_uInt32 ReadObj( SvPersistBase * & rpObj, bool bRegister );
+ void ReadObj( SvPersistBase * & rpObj, bool bRegister );
public:
virtual void ResetError() override;
diff --git a/include/tools/rc.hxx b/include/tools/rc.hxx
index 6b1e1be99e2f..372b70b7675e 100644
--- a/include/tools/rc.hxx
+++ b/include/tools/rc.hxx
@@ -44,8 +44,8 @@ protected:
{ return m_pResMgr->GetClass(); }
// increase the memory pointer gotten by GetClassRes()
- void* IncrementRes( sal_uInt32 nBytes )
- { return m_pResMgr->Increment( nBytes ); }
+ void IncrementRes( sal_uInt32 nBytes )
+ { m_pResMgr->Increment( nBytes ); }
// return the memory size of a Resource data block
static sal_uInt32 GetObjSizeRes( RSHEADER_TYPE * pHT )
diff --git a/include/tools/ref.hxx b/include/tools/ref.hxx
index 2ca5def8d543..a16125433dda 100644
--- a/include/tools/ref.hxx
+++ b/include/tools/ref.hxx
@@ -196,8 +196,6 @@ public:
{ return _xHdl.Is() && _xHdl->GetObj(); }
inline T* operator -> () const
{ return _xHdl.Is() ? _xHdl->GetObj() : 0; }
- inline T* operator & () const
- { return _xHdl.Is() ? _xHdl->GetObj() : 0; }
inline operator T* () const
{ return _xHdl.Is() ? _xHdl->GetObj() : 0; }
};
diff --git a/include/tools/resid.hxx b/include/tools/resid.hxx
index dd0188d3fded..aa4707545d06 100644
--- a/include/tools/resid.hxx
+++ b/include/tools/resid.hxx
@@ -99,11 +99,10 @@ public:
}
ResMgr * GetResMgr() const { return m_pResMgr; }
- const ResId & SetResMgr( ResMgr * pMgr ) const
+ void SetResMgr( ResMgr * pMgr ) const
{
m_pResMgr = pMgr;
OSL_ENSURE( m_pResMgr != nullptr, "invalid ResMgr set on ResId" );
- return *this;
}
const ResId & SetAutoRelease(bool bRelease) const
diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx
index 9b7182c5170f..16b46fb72f90 100644
--- a/include/tools/stream.hxx
+++ b/include/tools/stream.hxx
@@ -361,7 +361,7 @@ public:
bool WriteByteStringLine( const OUString& rStr, rtl_TextEncoding eDestCharSet );
/// Switch to no endian swapping and write 0xfeff
- bool StartWritingUnicodeText();
+ void StartWritingUnicodeText();
/** If eReadBomCharSet==RTL_TEXTENCODING_DONTKNOW: read 16bit, if 0xfeff do
nothing (UTF-16), if 0xfffe switch endian swapping (UTF-16), if 0xefbb
@@ -372,7 +372,7 @@ public:
If eReadBomCharSet!=RTL_TEXTENCODING_DONTKNOW: only read a BOM of that
encoding and switch endian swapping if UTF-16 and 0xfffe. */
- bool StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet );
+ void StartReadingUnicodeText( rtl_TextEncoding eReadBomCharSet );
/** Read a line of Unicode.
@@ -621,7 +621,7 @@ private:
bool LockRange( sal_Size nByteOffset, sal_Size nBytes );
bool UnlockRange( sal_Size nByteOffset, sal_Size nBytes );
bool LockFile();
- bool UnlockFile();
+ void UnlockFile();
protected:
virtual sal_Size GetData( void* pData, sal_Size nSize ) override;
@@ -695,10 +695,9 @@ public:
sal_uInt64 GetSize();
sal_Size GetEndOfData() const { return nEndOfData; }
const void* GetData() { Flush(); return pBuf; }
- operator const void*() { Flush(); return pBuf; }
void* SwitchBuffer( sal_Size nInitSize=512, sal_Size nResize=64 );
- void* SetBuffer( void* pBuf, sal_Size nSize,
+ void SetBuffer( void* pBuf, sal_Size nSize,
bool bOwnsData=true, sal_Size nEOF=0 );
void ObjectOwnsMemory( bool bOwn ) { bOwnsData = bOwn; }
diff --git a/include/tools/urlobj.hxx b/include/tools/urlobj.hxx
index 2d2c356e35e4..cd5bf231d134 100644
--- a/include/tools/urlobj.hxx
+++ b/include/tools/urlobj.hxx
@@ -191,9 +191,6 @@ public:
bool operator <(INetURLObject const & rObject) const;
- inline bool operator >(INetURLObject const & rObject) const
- { return rObject < *this; }
-
// Strict Parsing:
inline explicit INetURLObject(
@@ -976,7 +973,7 @@ public:
rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8)
{ return appendSegment(rTheSegment, false, eMechanism, eCharset); }
- bool CutLastName();
+ void CutLastName();
// OBSOLETE File URLs:
diff --git a/include/tools/vcompat.hxx b/include/tools/vcompat.hxx
index b8dfe7fb8ef3..149bebda5e7b 100644
--- a/include/tools/vcompat.hxx
+++ b/include/tools/vcompat.hxx
@@ -41,7 +41,6 @@ class TOOLS_DLLPUBLIC VersionCompat
VersionCompat() {}
VersionCompat( const VersionCompat& ) {}
VersionCompat& operator=( const VersionCompat& ) { return *this; }
- bool operator==( const VersionCompat& ) { return false; }
public:
diff --git a/include/tools/vector2d.hxx b/include/tools/vector2d.hxx
deleted file mode 100644
index 7211bdca805d..000000000000
--- a/include/tools/vector2d.hxx
+++ /dev/null
@@ -1,92 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- *
- * This file incorporates work covered by the following license notice:
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed
- * with this work for additional information regarding copyright
- * ownership. The ASF licenses this file to you under the Apache
- * License, Version 2.0 (the "License"); you may not use this file
- * except in compliance with the License. You may obtain a copy of
- * the License at http://www.apache.org/licenses/LICENSE-2.0 .
- */
-
-#ifndef INCLUDED_TOOLS_VECTOR2D_HXX
-#define INCLUDED_TOOLS_VECTOR2D_HXX
-
-#include <math.h>
-#include <tools/gen.hxx>
-
-class Vector2D
-{
-private:
- double mfX;
- double mfY;
-
-public:
- inline Vector2D() : mfX( 0.0 ), mfY( 0.0 ) {}
- inline Vector2D( double fX, double fY ) : mfX( fX ), mfY( fY ) {}
- inline Vector2D( const Vector2D& rVec ) : mfX( rVec.mfX ), mfY( rVec.mfY ) {}
- inline Vector2D( const Pair& rPair ) : mfX( rPair.A() ), mfY( rPair.B() ) {};
- inline ~Vector2D() {}
-
- inline const double& operator[] (int nPos) const { return (nPos ? mfY : mfX); }
- inline double& operator[] (int nPos) { return (nPos ? mfY : mfX); }
-
- inline double GetLength() const { return hypot( mfX, mfY ); }
- inline Vector2D& Normalize();
-
- inline Vector2D& operator+=( const Vector2D& rVec ) { mfX += rVec.mfX, mfY += rVec.mfY; return *this; }
- inline Vector2D& operator-=( const Vector2D& rVec ) { mfX -= rVec.mfX, mfY -= rVec.mfY; return *this; }
- inline Vector2D operator+(const Vector2D& rVec) const { Vector2D aSum(*this); aSum += rVec; return aSum; }
- inline Vector2D operator-(const Vector2D& rVec) const { Vector2D aSub(*this); aSub -= rVec; return aSub; }
- inline Vector2D operator-(void) const { return Vector2D(-mfX, -mfY); }
-
- inline double Scalar( const Vector2D& rVec ) const { return( mfX * rVec.mfX + mfY * rVec.mfY ); }
-
- inline Vector2D& operator/=( const Vector2D& rVec ) { mfX /= rVec.mfX, mfY /= rVec.mfY; return *this; }
- inline Vector2D& operator*=( const Vector2D& rVec ) { mfX *= rVec.mfX, mfY *= rVec.mfY; return *this; }
- inline Vector2D operator/(const Vector2D& rVec) const { Vector2D aDiv(*this); aDiv /= rVec; return aDiv; }
- inline Vector2D operator*(const Vector2D& rVec) const { Vector2D aMul(*this); aMul *= rVec; return aMul; }
-
- inline Vector2D& operator*=(double t) { mfX *= t; mfY *= t; return *this; }
- inline Vector2D operator*(double t) const { Vector2D aNew(*this); aNew *= t; return aNew; }
- inline Vector2D& operator/=(double t) { mfX /= t; mfY /= t; return *this; }
- inline Vector2D operator/(double t) const { Vector2D aNew(*this); aNew /= t; return aNew; }
-
- inline bool operator==( const Vector2D& rVec ) const { return( mfX == rVec.mfX && mfY == rVec.mfY ); }
- inline bool operator!=( const Vector2D& rVec ) const { return !( *this == rVec ); }
-
- inline Vector2D& operator=( const Vector2D& rVec ) { mfX = rVec.mfX, mfY = rVec.mfY; return *this; }
- inline Vector2D& operator=( const Pair& rPair ) { mfX = rPair.A(), mfY = rPair.B(); return *this; }
- inline Vector2D& operator-=( const Pair& rPair ) { mfX -= rPair.A(), mfY -= rPair.B(); return *this; }
- inline Vector2D& operator+=( const Pair& rPair ) { mfX += rPair.A(), mfY += rPair.B(); return *this; }
- inline Vector2D& operator*=( const Pair& rPair ) { mfX *= rPair.A(), mfY *= rPair.B(); return *this; }
- inline Vector2D& operator/=( const Pair& rPair ) { mfX /= rPair.A(), mfY /= rPair.B(); return *this; }
-
- inline bool operator==( const Pair& rPair ) const { return( mfX == rPair.A() && mfY == rPair.B() ); }
- inline bool operator!=( const Pair& rPair ) const { return !( *this == rPair ); }
-
- inline bool IsPositive( Vector2D& rVec ) const { return( ( mfX * rVec.mfY - mfY * rVec.mfX ) >= 0.0 ); }
- inline bool IsNegative( Vector2D& rVec ) const { return !IsPositive( rVec ); }
-};
-
-inline Vector2D& Vector2D::Normalize()
-{
- double fLen = Scalar( *this );
-
- if( ( fLen != 0.0 ) && ( fLen != 1.0 ) && ( ( fLen = sqrt( fLen ) ) != 0.0 ) )
- mfX /= fLen, mfY /= fLen;
-
- return *this;
-}
-
-#endif
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/tools/zcodec.hxx b/include/tools/zcodec.hxx
index ac389ae12f2b..d84b66a8cb61 100644
--- a/include/tools/zcodec.hxx
+++ b/include/tools/zcodec.hxx
@@ -65,11 +65,11 @@ public:
void BeginCompression( int nCompressLevel = ZCODEC_DEFAULT_COMPRESSION, bool updateCrc = false, bool gzLib = false );
long EndCompression();
- long Compress( SvStream& rIStm, SvStream& rOStm );
+ void Compress( SvStream& rIStm, SvStream& rOStm );
long Decompress( SvStream& rIStm, SvStream& rOStm );
bool AttemptDecompression( SvStream& rIStm, SvStream& rOStm, bool updateCrc = false, bool gzLib = false );
- long Write( SvStream& rOStm, const sal_uInt8* pData, sal_uIntPtr nSize );
+ void Write( SvStream& rOStm, const sal_uInt8* pData, sal_uIntPtr nSize );
long Read( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize );
long ReadAsynchron( SvStream& rIStm, sal_uInt8* pData, sal_uIntPtr nSize );