summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2012-11-19 21:14:55 +0200
committerTor Lillqvist <tml@iki.fi>2012-11-19 21:23:27 +0200
commit160cfb5e5e4ab6c9e6062c74ba6ed1c610a4981a (patch)
treecf9024972c0d0535a16763968a0c0c3192671f77 /tools
parentdebea9d3250e809e323461324514e9d073d06e3a (diff)
Bin the HACK() sillyness
Change-Id: Ieeebc4098404fa006d66bb8b656172a4348b1dc1
Diffstat (limited to 'tools')
-rw-r--r--tools/inc/tools/solar.h6
-rw-r--r--tools/source/fsys/dirent.cxx2
-rw-r--r--tools/source/fsys/wntmsc.cxx2
3 files changed, 2 insertions, 8 deletions
diff --git a/tools/inc/tools/solar.h b/tools/inc/tools/solar.h
index 5818e8f91fa9..7c43173b9104 100644
--- a/tools/inc/tools/solar.h
+++ b/tools/inc/tools/solar.h
@@ -143,12 +143,6 @@ template<typename T> inline T Abs(T a) { return (a>=0?a:-a); }
#define EXTERN_C
#endif
-#ifdef NOHACKS
-#define HACK( comment ) #error hack: comment
-#else
-#define HACK( comment )
-#endif
-
#define _LF ((char)0x0A)
#define _CR ((char)0x0D)
diff --git a/tools/source/fsys/dirent.cxx b/tools/source/fsys/dirent.cxx
index 6efde8a9b427..cc0d3ff73490 100644
--- a/tools/source/fsys/dirent.cxx
+++ b/tools/source/fsys/dirent.cxx
@@ -1482,7 +1482,7 @@ FSysError DirEntry::CopyTo( const DirEntry& rDest, FSysAction nActions ) const
#ifdef UNX
{
// create hardlink
- HACK(redirection missing)
+ // redirection missing
rtl::OString aThis(rtl::OUStringToOString(GetFull(), osl_getThreadTextEncoding()));
rtl::OString aDest(rtl::OUStringToOString(rDest.GetFull(), osl_getThreadTextEncoding()));
if (link(aThis.getStr(), aDest.getStr()) == -1)
diff --git a/tools/source/fsys/wntmsc.cxx b/tools/source/fsys/wntmsc.cxx
index 80fa6e8068c9..8a82ae8cea0c 100644
--- a/tools/source/fsys/wntmsc.cxx
+++ b/tools/source/fsys/wntmsc.cxx
@@ -602,7 +602,7 @@ sal_Bool FileStat::Update( const DirEntry& rDirEntry, sal_Bool bForceAccess )
DirEntry aDirEntry( aPath );
// Is a medium in this device?
- HACK("How?")
+ // How?
sal_Bool bAccess = sal_True;
const DirEntry *pTop = aDirEntry.ImpGetTopPtr();
rtl::OString aName = rtl::OString(pTop->aName).toAsciiLowerCase();