summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2013-10-22 15:58:57 +0300
committerTor Lillqvist <tml@collabora.com>2013-10-22 16:56:28 +0300
commita7724966ab4fc8cd680a20e4f2a65f276e001a39 (patch)
tree5aeb953a7172ea061c7884be8c19849b9e2d81d8 /basic
parent1cbe2313edda8a04f0fe233b4a29ef4e2485f557 (diff)
Bin comments that claim to say why some header is included
They are practically always useless, often misleading or obsolete. Change-Id: I2d32182a31349c9fb3b982498fd22d93e84c0c0c
Diffstat (limited to 'basic')
-rw-r--r--basic/source/classes/image.cxx2
-rw-r--r--basic/source/classes/propacc.cxx2
-rw-r--r--basic/source/comp/exprtree.cxx2
-rw-r--r--basic/source/runtime/methods.cxx2
-rw-r--r--basic/source/runtime/methods1.cxx2
-rw-r--r--basic/source/sbx/sbxcurr.cxx2
-rw-r--r--basic/source/sbx/sbxform.cxx6
7 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx
index c0748556651b..66d79853c799 100644
--- a/basic/source/classes/image.cxx
+++ b/basic/source/classes/image.cxx
@@ -22,7 +22,7 @@
#include <osl/thread.h>
#include <basic/sbx.hxx>
#include "sb.hxx"
-#include <string.h> // memset() etc
+#include <string.h>
#include "image.hxx"
#include <codegen.hxx>
SbiImage::SbiImage()
diff --git a/basic/source/classes/propacc.cxx b/basic/source/classes/propacc.cxx
index 2ea51d4275db..166a07e5cb50 100644
--- a/basic/source/classes/propacc.cxx
+++ b/basic/source/classes/propacc.cxx
@@ -24,7 +24,7 @@
#include <sbunoobj.hxx>
#include <basic/sbuno.hxx>
-#include <limits.h> // USHRT_MAX
+#include <limits.h>
using com::sun::star::uno::Reference;
using namespace com::sun::star;
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index e56d70669eb9..8346e566d400 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -19,7 +19,7 @@
#include "sbcomp.hxx"
-#include <basic/sbx.hxx> // because of ...IMPL_REF(...sbxvariable)
+#include <basic/sbx.hxx>
#include "expr.hxx"
/***************************************************************************
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx
index 549c56168262..691c5ea5931a 100644
--- a/basic/source/runtime/methods.cxx
+++ b/basic/source/runtime/methods.cxx
@@ -84,7 +84,7 @@ using namespace com::sun::star::uno;
SbxVariable* getDefaultProp( SbxVariable* pRef );
#if defined (WNT)
-#include <direct.h> // _getdcwd get current work directory, _chdrive
+#include <direct.h>
#endif
#include <basic/sbobjmod.hxx>
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx
index de275d740735..bf83745efd25 100644
--- a/basic/source/runtime/methods1.cxx
+++ b/basic/source/runtime/methods1.cxx
@@ -21,7 +21,7 @@
#include <cstddef>
-#include <stdlib.h> // getenv
+#include <stdlib.h>
#include <vcl/svapp.hxx>
#include <vcl/mapmod.hxx>
#include <vcl/wrkwin.hxx>
diff --git a/basic/source/sbx/sbxcurr.cxx b/basic/source/sbx/sbxcurr.cxx
index 851c6a8caa93..571eeb757230 100644
--- a/basic/source/sbx/sbxcurr.cxx
+++ b/basic/source/sbx/sbxcurr.cxx
@@ -19,7 +19,7 @@
#include <tools/errcode.hxx>
-#include <vcl/svapp.hxx> // for SvtSysLocale
+#include <vcl/svapp.hxx>
#include <basic/sbx.hxx>
#include <basic/sbxvar.hxx>
diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx
index e2891085ad6c..b7338d8c8778 100644
--- a/basic/source/sbx/sbxform.cxx
+++ b/basic/source/sbx/sbxform.cxx
@@ -36,9 +36,9 @@ COMMENT: Visual-Basic treats the following (invalid) format-strings
(this class behaves the same way)
*/
-#include <stdio.h> // for: sprintf()
-#include <float.h> // for: DBL_DIG, DBL_EPSILON
-#include <math.h> // for: floor(), fabs(), log10(), pow()
+#include <stdio.h>
+#include <float.h>
+#include <math.h>
//=================================================================
//=========================== DEFINES =============================