summaryrefslogtreecommitdiff
path: root/sc/source/core
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 /sc/source/core
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 'sc/source/core')
-rw-r--r--sc/source/core/data/attrib.cxx2
-rw-r--r--sc/source/core/data/column.cxx2
-rw-r--r--sc/source/core/data/column2.cxx2
-rw-r--r--sc/source/core/data/column3.cxx4
-rw-r--r--sc/source/core/data/docpool.cxx2
-rw-r--r--sc/source/core/data/documen2.cxx2
-rw-r--r--sc/source/core/data/documen3.cxx4
-rw-r--r--sc/source/core/data/documen7.cxx6
-rw-r--r--sc/source/core/data/documen8.cxx2
-rw-r--r--sc/source/core/data/documen9.cxx2
-rw-r--r--sc/source/core/data/document.cxx2
-rw-r--r--sc/source/core/data/dpobject.cxx6
-rw-r--r--sc/source/core/data/dpoutput.cxx2
-rw-r--r--sc/source/core/data/dptabres.cxx4
-rw-r--r--sc/source/core/data/dptabsrc.cxx2
-rw-r--r--sc/source/core/data/fillinfo.cxx2
-rw-r--r--sc/source/core/data/pivot2.cxx2
-rw-r--r--sc/source/core/data/stlsheet.cxx2
-rw-r--r--sc/source/core/data/table1.cxx2
-rw-r--r--sc/source/core/data/table2.cxx2
-rw-r--r--sc/source/core/inc/addinlis.hxx2
-rw-r--r--sc/source/core/inc/parclass.hxx2
-rw-r--r--sc/source/core/src/compiler.src4
-rw-r--r--sc/source/core/tool/addincol.cxx2
-rw-r--r--sc/source/core/tool/addinlis.cxx2
-rw-r--r--sc/source/core/tool/adiasync.cxx2
-rw-r--r--sc/source/core/tool/chartarr.cxx2
-rw-r--r--sc/source/core/tool/chgtrack.cxx6
-rw-r--r--sc/source/core/tool/optutil.cxx2
-rw-r--r--sc/source/core/tool/parclass.cxx2
-rw-r--r--sc/source/core/tool/rangelst.cxx2
-rw-r--r--sc/source/core/tool/unitconv.cxx2
32 files changed, 42 insertions, 42 deletions
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index 042c4b51a5d4..71d9caee6778 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -37,7 +37,7 @@
#include "sc.hrc"
#include "globstr.hrc"
-#include "textuno.hxx" // ScHeaderFooterContentObj
+#include "textuno.hxx"
using namespace com::sun::star;
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index c62ff84c66f5..6e356ee73fb8 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -27,7 +27,7 @@
#include "compiler.hxx"
#include "brdcst.hxx"
#include "markdata.hxx"
-#include "detfunc.hxx" // for Notes in Sort/Swap
+#include "detfunc.hxx"
#include "postit.hxx"
#include "globalnames.hxx"
#include "cellvalue.hxx"
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index f5be76f31e4e..e3393057eae9 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -31,7 +31,7 @@
#include "editutil.hxx"
#include "subtotal.hxx"
#include "markdata.hxx"
-#include "compiler.hxx" // ScTokenArray GetCodeLen
+#include "compiler.hxx"
#include "dbdata.hxx"
#include "fillinfo.hxx"
#include "segmenttree.hxx"
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index e656d5173db9..b344e37e6028 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -29,10 +29,10 @@
#include "formula/errorcodes.hxx"
#include "formula/token.hxx"
#include "brdcst.hxx"
-#include "docoptio.hxx" // GetStdPrecision for GetMaxNumberStringLen
+#include "docoptio.hxx"
#include "subtotal.hxx"
#include "markdata.hxx"
-#include "detfunc.hxx" // For Notes for DeleteRange
+#include "detfunc.hxx"
#include "postit.hxx"
#include "stringutil.hxx"
#include "docpool.hxx"
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index 018dc1c158bb..1f8b87241928 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -64,7 +64,7 @@
#include "attrib.hxx"
#include "patattr.hxx"
#include "globstr.hrc"
-#include "sc.hrc" // Slot-IDs
+#include "sc.hrc"
#define SC_MAX_POOLREF (SFX_ITEMS_OLD_MAXREF - 39)
#define SC_SAFE_POOLREF (SC_MAX_POOLREF + 20)
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index 77d1278fd784..982d97765ad3 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -68,7 +68,7 @@
#include "validat.hxx"
#include "progress.hxx"
#include "detdata.hxx"
-#include "sc.hrc" // FID_DATACHANGED
+#include "sc.hrc"
#include "ddelink.hxx"
#include "chgtrack.hxx"
#include "chgviset.hxx"
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index 611aa2cf2940..73f8d71598f8 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -52,9 +52,9 @@
#include "dociter.hxx"
#include "detdata.hxx"
#include "detfunc.hxx"
-#include "inputopt.hxx" // GetExpandRefs
+#include "inputopt.hxx"
#include "chartlis.hxx"
-#include "sc.hrc" // SID_LINK
+#include "sc.hrc"
#include "hints.hxx"
#include "dpobject.hxx"
#include "drwlayer.hxx"
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx
index 459888aa76e1..56ce8d1c0ff9 100644
--- a/sc/source/core/data/documen7.cxx
+++ b/sc/source/core/data/documen7.cxx
@@ -23,14 +23,14 @@
#include "brdcst.hxx"
#include "bcaslot.hxx"
#include "formulacell.hxx"
-#include "formula/errorcodes.hxx" // errCircularReference
+#include "formula/errorcodes.hxx"
#include "scerrors.hxx"
#include "docoptio.hxx"
#include "refupdat.hxx"
#include "table.hxx"
#include "progress.hxx"
-#include "scmod.hxx" // SC_MOD
-#include "inputopt.hxx" // GetExpandRefs
+#include "scmod.hxx"
+#include "inputopt.hxx"
#include "conditio.hxx"
#include "colorscale.hxx"
#include "sheetevents.hxx"
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index cb5162b5988c..f9e4bd3bc2b1 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -71,7 +71,7 @@
#include "chartlis.hxx"
#include "chartlock.hxx"
#include "refupdat.hxx"
-#include "validat.hxx" // fuer HasMacroCalls
+#include "validat.hxx"
#include "markdata.hxx"
#include "scmod.hxx"
#include "printopt.hxx"
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index 4c2bf25d7c1d..7eac811e49f2 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -49,7 +49,7 @@
#include "rechead.hxx"
#include "poolhelp.hxx"
#include "docpool.hxx"
-#include "detfunc.hxx" // for UpdateAllComments
+#include "detfunc.hxx"
#include "editutil.hxx"
#include "postit.hxx"
#include "charthelper.hxx"
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 8232af15fd8e..dee85dddab83 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -74,7 +74,7 @@
#include "hints.hxx"
#include "detdata.hxx"
#include "dpobject.hxx"
-#include "detfunc.hxx" // for UpdateAllComments
+#include "detfunc.hxx"
#include "scmod.hxx"
#include "dociter.hxx"
#include "progress.hxx"
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 5106cd836bb7..bab39888eae1 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -27,8 +27,8 @@
#include "dpgroup.hxx"
#include "document.hxx"
#include "rechead.hxx"
-#include "pivot.hxx" // PIVOT_DATA_FIELD
-#include "dapiuno.hxx" // ScDataPilotConversion
+#include "pivot.hxx"
+#include "dapiuno.hxx"
#include "miscuno.hxx"
#include "scerrors.hxx"
#include "refupdat.hxx"
@@ -71,7 +71,7 @@
#include <sal/macros.h>
#include <tools/debug.hxx>
#include <tools/diagnose_ex.h>
-#include <svl/zforlist.hxx> // IsNumberFormat
+#include <svl/zforlist.hxx>
#include <vcl/msgbox.hxx>
#include <vector>
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index e774f8e18119..ab95110cf579 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -33,7 +33,7 @@
#include "docpool.hxx"
#include "markdata.hxx"
#include "attrib.hxx"
-#include "formula/errorcodes.hxx" // errNoValue
+#include "formula/errorcodes.hxx"
#include "miscuno.hxx"
#include "globstr.hrc"
#include "stlpool.hxx"
diff --git a/sc/source/core/data/dptabres.cxx b/sc/source/core/data/dptabres.cxx
index 33445d5c8da0..e57683e40871 100644
--- a/sc/source/core/data/dptabres.cxx
+++ b/sc/source/core/data/dptabres.cxx
@@ -26,7 +26,7 @@
#include "globstr.hrc"
#include "dpitemdata.hxx"
-#include "document.hxx" // for DumpState only!
+#include "document.hxx"
#include "stlalgorithm.hxx"
#include "dpresfilter.hxx"
#include "dputil.hxx"
@@ -36,7 +36,7 @@
#include <rtl/strbuf.hxx>
#include <math.h>
-#include <float.h> //! Test !!!
+#include <float.h>
#include <algorithm>
#include <boost/unordered_map.hpp>
#include <boost/scoped_ptr.hpp>
diff --git a/sc/source/core/data/dptabsrc.cxx b/sc/source/core/data/dptabsrc.cxx
index 9f98b321ac36..d3fb4e7c1ec0 100644
--- a/sc/source/core/data/dptabsrc.cxx
+++ b/sc/source/core/data/dptabsrc.cxx
@@ -39,7 +39,7 @@
#include "dptabres.hxx"
#include "dptabdat.hxx"
#include "global.hxx"
-#include "datauno.hxx" // ScDataUnoConversion
+#include "datauno.hxx"
#include "miscuno.hxx"
#include "unonames.hxx"
#include "dpitemdata.hxx"
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx
index 4ce3ee56bc5e..225c0cec5769 100644
--- a/sc/source/core/data/fillinfo.cxx
+++ b/sc/source/core/data/fillinfo.cxx
@@ -21,7 +21,7 @@
#include "scitems.hxx"
#include <editeng/boxitem.hxx>
#include <editeng/lineitem.hxx>
-#include <editeng/editdata.hxx> // can be removed if table has a bLayoutRTL flag
+#include <editeng/editdata.hxx>
#include <editeng/shaditem.hxx>
#include <editeng/brushitem.hxx>
diff --git a/sc/source/core/data/pivot2.cxx b/sc/source/core/data/pivot2.cxx
index e8aed7776d99..bcdae436fc10 100644
--- a/sc/source/core/data/pivot2.cxx
+++ b/sc/source/core/data/pivot2.cxx
@@ -33,7 +33,7 @@
#include "userlist.hxx"
#include "pivot.hxx"
#include "rechead.hxx"
-#include "formula/errorcodes.hxx" // fuer errNoValue
+#include "formula/errorcodes.hxx"
#include "refupdat.hxx"
#include "stlpool.hxx"
#include "stlsheet.hxx"
diff --git a/sc/source/core/data/stlsheet.cxx b/sc/source/core/data/stlsheet.cxx
index c7c4fd168c8c..7c8c1467b6a6 100644
--- a/sc/source/core/data/stlsheet.cxx
+++ b/sc/source/core/data/stlsheet.cxx
@@ -37,7 +37,7 @@
#include "attrib.hxx"
-#include <vcl/svapp.hxx> // GetSettings()
+#include <vcl/svapp.hxx>
#include "globstr.hrc"
#include "sc.hrc"
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 851cf6c86b2c..5a63338aacd1 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -36,7 +36,7 @@
#include "refupdat.hxx"
#include "markdata.hxx"
#include "progress.hxx"
-#include "hints.hxx" // fuer Paint-Broadcast
+#include "hints.hxx"
#include "prnsave.hxx"
#include "tabprotection.hxx"
#include "sheetevents.hxx"
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index be791ca1abcb..aa4f7fba7c12 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -26,7 +26,7 @@
#include "olinetab.hxx"
#include "rechead.hxx"
#include "stlpool.hxx"
-#include "attarray.hxx" // Iterator
+#include "attarray.hxx"
#include "markdata.hxx"
#include "progress.hxx"
#include "dociter.hxx"
diff --git a/sc/source/core/inc/addinlis.hxx b/sc/source/core/inc/addinlis.hxx
index 05eddd11fd39..c2a702469e53 100644
--- a/sc/source/core/inc/addinlis.hxx
+++ b/sc/source/core/inc/addinlis.hxx
@@ -20,7 +20,7 @@
#ifndef SC_ADDINLIS_HXX
#define SC_ADDINLIS_HXX
-#include "adiasync.hxx" // for ScAddInDocs PtrArr
+#include "adiasync.hxx"
#include <com/sun/star/sheet/XResultListener.hpp>
#include <com/sun/star/sheet/XVolatileResult.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
diff --git a/sc/source/core/inc/parclass.hxx b/sc/source/core/inc/parclass.hxx
index b2500ff09a09..50f457744e67 100644
--- a/sc/source/core/inc/parclass.hxx
+++ b/sc/source/core/inc/parclass.hxx
@@ -21,7 +21,7 @@
#define SC_PARCLASS_HXX
#include "formula/opcode.hxx"
-#include <sys/types.h> // size_t
+#include <sys/types.h>
namespace formula
{
diff --git a/sc/source/core/src/compiler.src b/sc/source/core/src/compiler.src
index c6a8cbfbc4b9..d89ad7011907 100644
--- a/sc/source/core/src/compiler.src
+++ b/sc/source/core/src/compiler.src
@@ -17,8 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include "sc.hrc" // Definition RID_XXX
-#include <formula/compiler.hrc> // Definition SC_OPCODE_XXX (interne OpCodes)
+#include "sc.hrc"
+#include <formula/compiler.hrc>
Resource RID_FUNCTION_CATEGORIES
{
diff --git a/sc/source/core/tool/addincol.cxx b/sc/source/core/tool/addincol.cxx
index db0d521cc731..2e100964eb93 100644
--- a/sc/source/core/tool/addincol.cxx
+++ b/sc/source/core/tool/addincol.cxx
@@ -50,7 +50,7 @@
#include "rangeseq.hxx"
#include "funcdesc.hxx"
#include "svl/sharedstring.hxx"
-#include "formulaopt.hxx" //fdo50118
+#include "formulaopt.hxx"
using namespace com::sun::star;
diff --git a/sc/source/core/tool/addinlis.cxx b/sc/source/core/tool/addinlis.cxx
index fa945c0754ce..c7a213c0e5e7 100644
--- a/sc/source/core/tool/addinlis.cxx
+++ b/sc/source/core/tool/addinlis.cxx
@@ -22,7 +22,7 @@
#include <vcl/svapp.hxx>
#include "addinlis.hxx"
-#include "miscuno.hxx" // SC_IMPL_SERVICE_INFO
+#include "miscuno.hxx"
#include "document.hxx"
#include "brdcst.hxx"
#include "sc.hrc"
diff --git a/sc/source/core/tool/adiasync.cxx b/sc/source/core/tool/adiasync.cxx
index 76ec8dd2cbb9..3232b0e6fb0a 100644
--- a/sc/source/core/tool/adiasync.cxx
+++ b/sc/source/core/tool/adiasync.cxx
@@ -23,7 +23,7 @@
#include "brdcst.hxx"
#include "global.hxx"
#include "document.hxx"
-#include "sc.hrc" // FID_DATACHANGED
+#include "sc.hrc"
#include <osl/thread.h>
ScAddInAsyncs theAddInAsyncTbl;
diff --git a/sc/source/core/tool/chartarr.cxx b/sc/source/core/tool/chartarr.cxx
index 67fa14aa3d68..8631823a79b4 100644
--- a/sc/source/core/tool/chartarr.cxx
+++ b/sc/source/core/tool/chartarr.cxx
@@ -20,7 +20,7 @@
#include "scitems.hxx"
#include <svl/intitem.hxx>
#include <svl/zforlist.hxx>
-#include <float.h> // DBL_MIN
+#include <float.h>
#include "chartarr.hxx"
#include "document.hxx"
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index ab07a637bd14..fa0e0aab5c09 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -24,8 +24,8 @@
#include "global.hxx"
#include "rechead.hxx"
#include "scerrors.hxx"
-#include "scmod.hxx" // SC_MOD
-#include "inputopt.hxx" // GetExpandRefs
+#include "scmod.hxx"
+#include "inputopt.hxx"
#include "patattr.hxx"
#include "hints.hxx"
#include "markdata.hxx"
@@ -34,7 +34,7 @@
#include "tokenarray.hxx"
#include "refupdatecontext.hxx"
-#include <tools/shl.hxx> // SHL_CALC
+#include <tools/shl.hxx>
#include <tools/rtti.hxx>
#include <svl/zforlist.hxx>
#include <svl/itemset.hxx>
diff --git a/sc/source/core/tool/optutil.cxx b/sc/source/core/tool/optutil.cxx
index e2156d3653fb..dfa8cf9c9b40 100644
--- a/sc/source/core/tool/optutil.cxx
+++ b/sc/source/core/tool/optutil.cxx
@@ -20,7 +20,7 @@
#include <vcl/svapp.hxx>
#include "optutil.hxx"
-#include "global.hxx" // for pSysLocale
+#include "global.hxx"
#include <unotools/syslocale.hxx>
sal_Bool ScOptionsUtil::IsMetricSystem()
diff --git a/sc/source/core/tool/parclass.cxx b/sc/source/core/tool/parclass.cxx
index bb8be285024b..6b5888dd8f71 100644
--- a/sc/source/core/tool/parclass.cxx
+++ b/sc/source/core/tool/parclass.cxx
@@ -34,7 +34,7 @@
#include <com/sun/star/sheet/FormulaLanguage.hpp>
#include <rtl/strbuf.hxx>
#include "compiler.hxx"
-#include "sc.hrc" // VAR_ARGS
+#include "sc.hrc"
#endif
/* Following assumptions are made:
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 076b302b88a1..c11056624012 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -17,7 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#include <stdlib.h> // qsort
+#include <stdlib.h>
#include <comphelper/string.hxx>
#include <unotools/collatorwrapper.hxx>
diff --git a/sc/source/core/tool/unitconv.cxx b/sc/source/core/tool/unitconv.cxx
index 883d02d98c69..8b8468395351 100644
--- a/sc/source/core/tool/unitconv.cxx
+++ b/sc/source/core/tool/unitconv.cxx
@@ -22,7 +22,7 @@
#include "unitconv.hxx"
#include "global.hxx"
-#include "viewopti.hxx" //! move ScLinkConfigItem to separate header!
+#include "viewopti.hxx"
using namespace utl;
using namespace com::sun::star::uno;