Kaydet (Commit) 17d4bb38 authored tarafından Philipp Riemer's avatar Philipp Riemer

cleanup files in tools/source

This is a follow-up patch of 7710faa45640d25a83136a35044aafdb1b168d88.

Change-Id: I1f54cbe5c3170e9a79e11e9b9c1da3791419a4ba
üst 9cadf9bd
...@@ -232,10 +232,10 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay, ...@@ -232,10 +232,10 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay,
// x_monday - thursday // x_monday - thursday
if ( n1WDay < nMinimumNumberOfDaysInWeek ) if ( n1WDay < nMinimumNumberOfDaysInWeek )
nWeek = 1; nWeek = 1;
// friday // Friday
else if ( n1WDay == nMinimumNumberOfDaysInWeek ) else if ( n1WDay == nMinimumNumberOfDaysInWeek )
nWeek = 53; nWeek = 53;
// saturday // Saturday
else if ( n1WDay == nMinimumNumberOfDaysInWeek + 1 ) else if ( n1WDay == nMinimumNumberOfDaysInWeek + 1 )
{ {
// Year after leapyear // Year after leapyear
...@@ -244,7 +244,7 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay, ...@@ -244,7 +244,7 @@ sal_uInt16 Date::GetWeekOfYear( DayOfWeek eStartDay,
else else
nWeek = 52; nWeek = 52;
} }
// sunday // Sunday
else else
nWeek = 52; nWeek = 52;
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#ifdef DBG_UTIL #ifdef DBG_UTIL
// --- PointerList --- // PointerList
#define PBLOCKCOUNT 1024 #define PBLOCKCOUNT 1024
......
...@@ -63,9 +63,9 @@ struct DirReader_Impl ...@@ -63,9 +63,9 @@ struct DirReader_Impl
bInUse( sal_False ) 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; pDosDir = NULL;
#else #else
aBypass = rtl::OUStringToOString(aPath, osl_getThreadTextEncoding()); aBypass = rtl::OUStringToOString(aPath, osl_getThreadTextEncoding());
...@@ -84,18 +84,18 @@ struct DirReader_Impl ...@@ -84,18 +84,18 @@ struct DirReader_Impl
{ if( pDosDir ) closedir( pDosDir ); } { if( pDosDir ) closedir( pDosDir ); }
// Init and Read are system-independent // Init and Read are system-independent
sal_uInt16 Init(); // Initializes (and if necessary) reads devices sal_uInt16 Init(); ///< Initializes (and if necessary) reads devices
sal_uInt16 Read(); // Reads one entry and appends it if ok sal_uInt16 Read(); ///< Reads one entry and appends it if ok
}; };
struct FileCopier_Impl struct FileCopier_Impl
{ {
FSysAction nActions; // action command (Copy/Move/recur) FSysAction nActions; ///< action command (Copy/Move/recur)
Link aErrorLink; // link to call upon errors Link aErrorLink; ///< link to call upon errors
ErrCode eErr; // current errorcode in the handler ErrCode eErr; ///< current errorcode in the handler
const DirEntry* pErrSource; // for error handlers in case of Source error const DirEntry* pErrSource; ///< for Error-Handler in case of Source error
const DirEntry* pErrTarget; // for error handlers in case of Target error const DirEntry* pErrTarget; ///< for Error-Handler in case of Target error
FileCopier_Impl() FileCopier_Impl()
: nActions( 0 ), eErr( 0 ), : nActions( 0 ), eErr( 0 ),
......
...@@ -998,7 +998,7 @@ sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const ...@@ -998,7 +998,7 @@ sal_Bool DirEntry::operator==( const DirEntry& rEntry ) const
{ {
DBG_CHKTHIS( DirEntry, ImpCheckDirEntry ); 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 ) ) if ( nError && ( nError == rEntry.nError ) )
return sal_True; return sal_True;
......
...@@ -586,6 +586,7 @@ sal_Bool FileStat::Update( const DirEntry& rDirEntry, sal_Bool bForceAccess ) ...@@ -586,6 +586,7 @@ sal_Bool FileStat::Update( const DirEntry& rDirEntry, sal_Bool bForceAccess )
} }
// Special treatment if it's a root without device // Special treatment if it's a root without device
if ( !rDirEntry.aName.getLength() && rDirEntry.eFlag == FSYS_FLAG_ABSROOT ) if ( !rDirEntry.aName.getLength() && rDirEntry.eFlag == FSYS_FLAG_ABSROOT )
{ {
nKindFlags = FSYS_KIND_DIR; nKindFlags = FSYS_KIND_DIR;
......
...@@ -793,7 +793,7 @@ void Polygon::Optimize( sal_uIntPtr nOptimizeFlags, const PolyOptimizeData* pDat ...@@ -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 @param rPointIter
Output iterator, where the subdivided polylines are written to. Output iterator, where the subdivided polylines are written to.
......
...@@ -156,13 +156,11 @@ ErrorInfo* EDcr_Impl::GetDynamicErrorInfo(sal_uIntPtr lId) ...@@ -156,13 +156,11 @@ ErrorInfo* EDcr_Impl::GetDynamicErrorInfo(sal_uIntPtr lId)
return new ErrorInfo(lId & ~ERRCODE_DYNAMIC_MASK); return new ErrorInfo(lId & ~ERRCODE_DYNAMIC_MASK);
} }
sal_uInt16 DynamicErrorInfo::GetDialogMask() const sal_uInt16 DynamicErrorInfo::GetDialogMask() const
{ {
return pImpl->nMask; return pImpl->nMask;
} }
StringErrorInfo::StringErrorInfo( StringErrorInfo::StringErrorInfo(
sal_uIntPtr UserId, const String& aStringP, sal_uInt16 nFlags) sal_uIntPtr UserId, const String& aStringP, sal_uInt16 nFlags)
: DynamicErrorInfo(UserId, nFlags), aString(aStringP) : DynamicErrorInfo(UserId, nFlags), aString(aStringP)
......
...@@ -745,8 +745,8 @@ rtl::OUString read_zeroTerminated_uInt8s_ToOUString(SvStream& rStream, rtl_TextE ...@@ -745,8 +745,8 @@ rtl::OUString read_zeroTerminated_uInt8s_ToOUString(SvStream& rStream, rtl_TextE
read_zeroTerminated_uInt8s_ToOString(rStream), eEnc); read_zeroTerminated_uInt8s_ToOString(rStream), eEnc);
} }
//Attempt to write a prefixed sequence of nUnits 16bit units from an OUString, /** Attempt to write a prefixed sequence of nUnits 16bit units from an OUString,
//returned value is number of bytes written returned value is number of bytes written */
sal_Size write_uInt16s_FromOUString(SvStream& rStrm, const rtl::OUString& rStr, sal_Size write_uInt16s_FromOUString(SvStream& rStrm, const rtl::OUString& rStr,
sal_Size nUnits) sal_Size nUnits)
{ {
......
...@@ -17,9 +17,7 @@ ...@@ -17,9 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
/* // TODO: StreamMode <-> AllocateMemory
Todo: StreamMode <-> AllocateMemory
*/
#include <string.h> #include <string.h>
#include <limits.h> #include <limits.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment