diff options
author | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-19 21:19:29 +0200 |
---|---|---|
committer | Philipp Riemer <ruderphilipp@gmail.com> | 2012-08-19 21:27:00 +0200 |
commit | 17d4bb38fad453cc56a93f8cb9f389ed6ee03af8 (patch) | |
tree | dd496d11ae639cbde7dcf1704c7ebbdf7ec380ec /tools | |
parent | 9cadf9bdf3c9210d9b79eaaed32282d6b7bf9e12 (diff) |
cleanup files in tools/source
This is a follow-up patch of 7710faa45640d25a83136a35044aafdb1b168d88.
Change-Id: I1f54cbe5c3170e9a79e11e9b9c1da3791419a4ba
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/datetime/tdate.cxx | 6 | ||||
-rw-r--r-- | tools/source/debug/debug.cxx | 2 | ||||
-rw-r--r-- | tools/source/fsys/comdep.hxx | 18 | ||||
-rw-r--r-- | tools/source/fsys/dirent.cxx | 2 | ||||
-rw-r--r-- | tools/source/fsys/wntmsc.cxx | 1 | ||||
-rw-r--r-- | tools/source/generic/poly.cxx | 2 | ||||
-rw-r--r-- | tools/source/ref/errinf.cxx | 2 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 4 | ||||
-rw-r--r-- | tools/source/stream/strmwnt.cxx | 4 |
9 files changed, 19 insertions, 22 deletions
diff --git a/tools/source/datetime/tdate.cxx b/tools/source/datetime/tdate.cxx index 2cb3ab048cca..d1a6c9461fda 100644 --- a/tools/source/datetime/tdate.cxx +++ b/tools/source/datetime/tdate.cxx @@ -232,10 +232,10 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay, // x_monday - thursday if ( n1WDay < nMinimumNumberOfDaysInWeek ) nWeek = 1; - // friday + // Friday else if ( n1WDay == nMinimumNumberOfDaysInWeek ) nWeek = 53; - // saturday + // Saturday else if ( n1WDay == nMinimumNumberOfDaysInWeek + 1 ) { // Year after leapyear @@ -244,7 +244,7 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay, else nWeek = 52; } - // sunday + // Sunday else nWeek = 52; diff --git a/tools/source/debug/debug.cxx b/tools/source/debug/debug.cxx index 1f30ef11cd68..3d573b57b33c 100644 --- a/tools/source/debug/debug.cxx +++ b/tools/source/debug/debug.cxx @@ -45,7 +45,7 @@ #ifdef DBG_UTIL -// --- PointerList --- +// PointerList #define PBLOCKCOUNT 1024 diff --git a/tools/source/fsys/comdep.hxx b/tools/source/fsys/comdep.hxx index eae34a378555..1b0a04bcf1cc 100644 --- a/tools/source/fsys/comdep.hxx +++ b/tools/source/fsys/comdep.hxx @@ -63,9 +63,9 @@ struct DirReader_Impl bInUse( sal_False ) { - // only use the String from Memer-Var + // only use the String from Member-Var -#if defined(UNX) //for further eplanation see DirReader_Impl::Read() in unx.cxx +#if defined(UNX) // for further explanation see DirReader_Impl::Read() in unx.cxx pDosDir = NULL; #else aBypass = rtl::OUStringToOString(aPath, osl_getThreadTextEncoding()); @@ -84,18 +84,18 @@ struct DirReader_Impl { if( pDosDir ) closedir( pDosDir ); } // Init and Read are system-independent - sal_uInt16 Init(); // Initializes (and if necessary) reads devices - sal_uInt16 Read(); // Reads one entry and appends it if ok + sal_uInt16 Init(); ///< Initializes (and if necessary) reads devices + sal_uInt16 Read(); ///< Reads one entry and appends it if ok }; struct FileCopier_Impl { - FSysAction nActions; // action command (Copy/Move/recur) - Link aErrorLink; // link to call upon errors - ErrCode eErr; // current errorcode in the handler - const DirEntry* pErrSource; // for error handlers in case of Source error - const DirEntry* pErrTarget; // for error handlers in case of Target error + FSysAction nActions; ///< action command (Copy/Move/recur) + Link aErrorLink; ///< link to call upon errors + ErrCode eErr; ///< current errorcode in the handler + const DirEntry* pErrSource; ///< for Error-Handler in case of Source error + const DirEntry* pErrTarget; ///< for Error-Handler in case of Target error FileCopier_Impl() : nActions( 0 ), eErr( 0 ), diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx index 919e1c9a978e..aef12998b722 100644 --- a/tools/source/fsys/dirent.cxx +++ b/tools/source/fsys/dirent.cxx @@ -998,7 +998,7 @@ sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const { DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); - // test wheather the contents are textual the same + // test whether the contents are textual the same if ( nError && ( nError == rEntry.nError ) ) return sal_True; diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx index f2eeffc7fad4..80fa6e8068c9 100644 --- a/tools/source/fsys/wntmsc.cxx +++ b/tools/source/fsys/wntmsc.cxx @@ -586,6 +586,7 @@ sal_Bool FileStat::Update( const DirEntry& rDirEntry, sal_Bool bForceAccess ) } // Special treatment if it's a root without device + if ( !rDirEntry.aName.getLength() && rDirEntry.eFlag == FSYS_FLAG_ABSROOT ) { nKindFlags = FSYS_KIND_DIR; diff --git a/tools/source/generic/poly.cxx b/tools/source/generic/poly.cxx index b15c97c6efb7..9f66f90a9064 100644 --- a/tools/source/generic/poly.cxx +++ b/tools/source/generic/poly.cxx @@ -793,7 +793,7 @@ void Polygon::Optimize( sal_uIntPtr nOptimizeFlags, const PolyOptimizeData* pDat } -/* Recursively subdivide cubic bezier curve via deCasteljau. +/** Recursively subdivide cubic bezier curve via deCasteljau. @param rPointIter Output iterator, where the subdivided polylines are written to. diff --git a/tools/source/ref/errinf.cxx b/tools/source/ref/errinf.cxx index 48087a7186f2..7126c06751a2 100644 --- a/tools/source/ref/errinf.cxx +++ b/tools/source/ref/errinf.cxx @@ -156,13 +156,11 @@ ErrorInfo* EDcr_Impl::GetDynamicErrorInfo(sal_uIntPtr lId) return new ErrorInfo(lId & ~ERRCODE_DYNAMIC_MASK); } - sal_uInt16 DynamicErrorInfo::GetDialogMask() const { return pImpl->nMask; } - StringErrorInfo::StringErrorInfo( sal_uIntPtr UserId, const String& aStringP, sal_uInt16 nFlags) : DynamicErrorInfo(UserId, nFlags), aString(aStringP) diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index c0a20ece25c5..6ca4d07ff364 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -745,8 +745,8 @@ rtl::OUString read_zeroTerminated_uInt8s_ToOUString(SvStream& rStream, rtl_TextE read_zeroTerminated_uInt8s_ToOString(rStream), eEnc); } -//Attempt to write a prefixed sequence of nUnits 16bit units from an OUString, -//returned value is number of bytes written +/** Attempt to write a prefixed sequence of nUnits 16bit units from an OUString, + returned value is number of bytes written */ sal_Size write_uInt16s_FromOUString(SvStream& rStrm, const rtl::OUString& rStr, sal_Size nUnits) { diff --git a/tools/source/stream/strmwnt.cxx b/tools/source/stream/strmwnt.cxx index 7f1e47d28285..1d7dfb214303 100644 --- a/tools/source/stream/strmwnt.cxx +++ b/tools/source/stream/strmwnt.cxx @@ -17,9 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -/* - Todo: StreamMode <-> AllocateMemory -*/ +// TODO: StreamMode <-> AllocateMemory #include <string.h> #include <limits.h> |