[Kstars-devel] KDE/kdeedu/kstars/kstars [POSSIBLY UNSAFE]

Jason Harris kstars at 30doradus.org
Sat Sep 22 16:03:09 CEST 2007


SVN commit 715584 by harris:

As discussed on kstars-devel, applying whitespace fixes to our
codebase.  This is mostly about indenting with 4 spaces instead of
TAB, but other changes were applied too.  I used the program "astyle"
to apply the changes; the following configuration file was used:

# brackets should be attached to pre-bracket lines
brackets=attach
# set 4 spaces per indent
indent=spaces=4
# indent case labels in switch blocks
#indent-switches
#indent "public"/"private"/etc. in classes
indent-classes
#insert blank line before/after blocks
break-blocks
#add empty space inside parentheses
pad=paren-in
#don't break one-line blocks
one-line=keep-blocks


Try to use these style options when writing new code.

I did *NOT* run astyle in the htmesh or satlib directories, as these
contain third-party code.  I also did NOT run it in indi, because I
thought maybe Jasem would like to use his own style options there.

I noticed a couple of problems with comment blocks; please fix these
as you find them.

CCMAIL: kstars-devel at kde.org



 M  +136 -136  addcatdialog.cpp  
 M  +56 -56    addcatdialog.h  
 M  +29 -29    addlinkdialog.cpp  
 M  +55 -55    addlinkdialog.h  
 M  +219 -219  colorscheme.cpp  
 M  +119 -119  colorscheme.h  
 M  +240 -240  deepskyobject.cpp  
 M  +155 -155  deepskyobject.h  
 M  +697 -697  detaildialog.cpp  
 M  +121 -121  detaildialog.h  
 M  +262 -262  devicemanager.cpp  
 M  +50 -50    devicemanager.h  
 M  +204 -204  dms.cpp  
 M  +274 -274  dms.h  
 M  +183 -183  finddialog.cpp  
 M  +51 -51    finddialog.h  
 M  +232 -232  fitshistogram.cpp  
 M  +42 -42    fitshistogram.h  
 M  +394 -394  fitsimage.cpp  
 M  +80 -80    fitsimage.h  
 M  +178 -178  fitsviewer.cpp  
 M  +40 -40    fitsviewer.h  
 M  +88 -88    focusdialog.cpp  
 M  +44 -44    focusdialog.h  
 M  +90 -90    fov.cpp  
 M  +24 -24    fov.h  
 M  +153 -153  fovdialog.cpp  
 M  +27 -27    fovdialog.h  
 M  +134 -134  geolocation.cpp  
 M  +250 -250  geolocation.h  
 M  +488 -488  imagesequence.cpp  
 M  +37 -37    imagesequence.h  
 M  +139 -139  imageviewer.cpp  
 M  +57 -57    imageviewer.h  
 M  +668 -668  indidevice.cpp  
 M  +62 -62    indidevice.h  
 M  +636 -636  indidriver.cpp  
 M  +51 -51    indidriver.h  
 M  +229 -229  indielement.cpp  
 M  +35 -35    indielement.h  
 M  +53 -53    indifitsconf.cpp  
 M  +14 -14    indifitsconf.h  
 M  +31 -31    indigroup.cpp  
 M  +12 -12    indigroup.h  
 M  +114 -114  indimenu.cpp  
 M  +35 -35    indimenu.h  
 M  +591 -591  indiproperty.cpp  
 M  +31 -31    indiproperty.h  
 M  +756 -756  indistd.cpp   [POSSIBLY UNSAFE: mkstemp,scanf]
 M  +87 -87    indistd.h  
 M  +101 -101  infobox.cpp  
 M  +150 -150  infobox.h  
 M  +332 -332  infoboxes.cpp  
 M  +198 -198  infoboxes.h  
 M  +461 -461  jupitermoons.cpp  
 M  +75 -75    jupitermoons.h  
 M  +76 -76    ksasteroid.cpp  
 M  +45 -45    ksasteroid.h  
 M  +100 -100  kscomet.cpp  
 M  +35 -35    kscomet.h  
 M  +13 -13    ksfilereader.cpp  
 M  +60 -60    ksfilereader.h  
 M  +144 -144  ksmoon.cpp  
 M  +77 -77    ksmoon.h  
 M  +324 -324  ksnumbers.cpp   [POSSIBLY UNSAFE: system]
 M  +60 -60    ksnumbers.h  
 M  +164 -164  ksplanet.cpp  
 M  +103 -103  ksplanet.h  
 M  +182 -182  ksplanetbase.cpp  
 M  +247 -247  ksplanetbase.h   [POSSIBLY UNSAFE: system]
 M  +29 -29    kspluto.cpp  
 M  +22 -22    kspluto.h  
 M  +271 -271  kspopupmenu.cpp  
 M  +110 -110  kspopupmenu.h  
 M  +83 -83    kssun.cpp  
 M  +21 -21    kssun.h  
 M  +155 -155  kstars.cpp  
 M  +507 -507  kstars.h  
 M  +714 -714  kstarsactions.cpp  
 M  +881 -881  kstarsdata.cpp  
 M  +349 -349  kstarsdata.h  
 M  +107 -107  kstarsdatetime.cpp  
 M  +145 -145  kstarsdatetime.h  
 M  +740 -740  kstarsdcop.cpp  
 M  +535 -535  kstarsinit.cpp  
 M  +54 -54    kstarssplash.cpp  
 M  +22 -22    kstarssplash.h  
 M  +23 -23    ksutils.cpp  
 M  +25 -25    ksutils.h  
 M  +105 -105  kswizard.cpp  
 M  +48 -48    kswizard.h  
 M  +299 -299  locationdialog.cpp  
 M  +74 -74    locationdialog.h  
 M  +129 -129  main.cpp  
 M  +11 -11    opsadvanced.cpp  
 M  +6 -6      opsadvanced.h  
 M  +151 -151  opscatalog.cpp  
 M  +16 -16    opscatalog.h  
 M  +157 -157  opscolors.cpp  
 M  +12 -12    opscolors.h  
 M  +8 -8      opsguides.cpp  
 M  +5 -5      opsguides.h  
 M  +36 -36    opssolarsystem.cpp  
 M  +8 -8      opssolarsystem.h  
 M  +155 -155  quaternion.cpp  
 M  +29 -29    quaternion.h  
 M  +115 -115  simclock.cpp  
 M  +86 -86    simclock.h  
 M  +61 -61    skycomponents/asteroidscomponent.cpp  
 M  +45 -45    skycomponents/asteroidscomponent.h  
 M  +52 -52    skycomponents/cometscomponent.cpp  
 M  +38 -38    skycomponents/cometscomponent.h  
 M  +16 -16    skycomponents/constellationboundary.cpp  
 M  +14 -14    skycomponents/constellationboundary.h  
 M  +22 -22    skycomponents/constellationboundarylines.cpp  
 M  +22 -22    skycomponents/constellationboundarylines.h  
 M  +7 -7      skycomponents/constellationlines.cpp  
 M  +38 -38    skycomponents/constellationlines.h  
 M  +42 -42    skycomponents/constellationnamescomponent.cpp  
 M  +39 -39    skycomponents/constellationnamescomponent.h  
 M  +20 -20    skycomponents/coordinategrid.cpp  
 M  +11 -11    skycomponents/coordinategrid.h  
 M  +327 -327  skycomponents/customcatalogcomponent.cpp  
 M  +82 -82    skycomponents/customcatalogcomponent.h  
 M  +179 -179  skycomponents/deepskycomponent.cpp  
 M  +81 -81    skycomponents/deepskycomponent.h  
 M  +35 -35    skycomponents/ecliptic.cpp  
 M  +21 -21    skycomponents/ecliptic.h  
 M  +26 -26    skycomponents/equator.cpp  
 M  +24 -24    skycomponents/equator.h  
 M  +5 -5      skycomponents/highpmstarlist.cpp  
 M  +37 -37    skycomponents/highpmstarlist.h  
 M  +294 -294  skycomponents/horizoncomponent.cpp  
 M  +27 -27    skycomponents/horizoncomponent.h  
 M  +48 -48    skycomponents/jupitermoonscomponent.cpp  
 M  +30 -30    skycomponents/jupitermoonscomponent.h  
 M  +21 -21    skycomponents/linelist.h  
 M  +120 -120  skycomponents/linelistcomponent.cpp  
 M  +73 -73    skycomponents/linelistcomponent.h  
 M  +39 -39    skycomponents/linelistindex.cpp  
 M  +120 -120  skycomponents/linelistindex.h  
 M  +114 -114  skycomponents/linelistlabel.cpp  
 M  +33 -33    skycomponents/linelistlabel.h  
 M  +38 -38    skycomponents/listcomponent.cpp  
 M  +44 -44    skycomponents/listcomponent.h  
 M  +28 -28    skycomponents/milkyway.cpp  
 M  +17 -17    skycomponents/milkyway.h  
 M  +3 -3      skycomponents/noprecessindex.cpp  
 M  +19 -19    skycomponents/noprecessindex.h  
 M  +8 -8      skycomponents/pointlistcomponent.cpp  
 M  +33 -33    skycomponents/pointlistcomponent.h  
 M  +26 -26    skycomponents/polylist.h  
 M  +25 -25    skycomponents/polylistindex.cpp  
 M  +22 -22    skycomponents/polylistindex.h  
 M  +79 -79    skycomponents/satellitecomponent.cpp  
 M  +23 -23    skycomponents/satellitecomponent.h  
 M  +59 -59    skycomponents/satellitecomposite.cpp  
 M  +25 -25    skycomponents/satellitecomposite.h  
 M  +24 -24    skycomponents/singlecomponent.cpp  
 M  +46 -46    skycomponents/singlecomponent.h  
 M  +16 -16    skycomponents/skiplist.h  
 M  +1 -1      skycomponents/skiplistindex.cpp  
 M  +17 -17    skycomponents/skiplistindex.h  
 M  +6 -6      skycomponents/skycomponent.cpp  
 M  +151 -151  skycomponents/skycomponent.h  
 M  +43 -43    skycomponents/skycomposite.cpp  
 M  +129 -129  skycomponents/skycomposite.h  
 M  +12 -12    skycomponents/skylabel.h  
 M  +86 -86    skycomponents/skylabeler.cpp  
 M  +176 -176  skycomponents/skylabeler.h  
 M  +224 -224  skycomponents/skymapcomposite.cpp  
 M  +124 -124  skycomponents/skymapcomposite.h  
 M  +22 -22    skycomponents/skymesh.cpp  
 M  +160 -160  skycomponents/skymesh.h  
 M  +60 -60    skycomponents/solarsystemcomposite.cpp  
 M  +30 -30    skycomponents/solarsystemcomposite.h  
 M  +104 -104  skycomponents/solarsystemlistcomponent.cpp  
 M  +34 -34    skycomponents/solarsystemlistcomponent.h  
 M  +132 -132  skycomponents/solarsystemsinglecomponent.cpp  
 M  +57 -57    skycomponents/solarsystemsinglecomponent.h  
 M  +246 -246  skycomponents/starcomponent.cpp  
 M  +100 -100  skycomponents/starcomponent.h  
 M  +1 -1      skycomponents/typedef.h  
 M  +60 -60    skyline.cpp  
 M  +73 -73    skyline.h  
 M  +1148 -1148 skymap.cpp  
 M  +701 -696  skymap.h  
 M  +376 -376  skymapdraw.cpp  
 M  +622 -597  skymapevents.cpp  
 M  +276 -276  skyobject.cpp  
 M  +250 -250  skyobject.h   [POSSIBLY UNSAFE: system]
 M  +404 -404  skypoint.cpp  
 M  +364 -364  skypoint.h  
 M  +261 -261  starobject.cpp  
 M  +203 -203  starobject.h   [POSSIBLY UNSAFE: system]
 M  +137 -137  streamwg.cpp  
 M  +64 -64    streamwg.h  
 M  +136 -136  telescopeprop.cpp  
 M  +13 -13    telescopeprop.h  
 M  +253 -253  telescopewizardprocess.cpp  
 M  +26 -26    telescopewizardprocess.h  
 M  +18 -18    thumbnaileditor.cpp  
 M  +10 -10    thumbnaileditor.h  
 M  +209 -209  thumbnailpicker.cpp  
 M  +28 -28    thumbnailpicker.h  
 M  +88 -88    timedialog.cpp  
 M  +57 -57    timedialog.h  
 M  +314 -314  timezonerule.cpp  
 M  +91 -91    timezonerule.h  
 M  +39 -39    toggleaction.cpp  
 M  +34 -34    toggleaction.h  
 M  +427 -427  tools/altvstime.cpp  
 M  +152 -152  tools/altvstime.h  
 M  +171 -171  tools/astrocalc.cpp  
 M  +42 -42    tools/astrocalc.h  
 M  +58 -58    tools/eqplotwidget.cpp  
 M  +3 -3      tools/eqplotwidget.h  
 M  +133 -133  tools/jmoontool.cpp  
 M  +8 -8      tools/jmoontool.h  
 M  +113 -113  tools/lcgenerator.cpp  
 M  +50 -50    tools/lcgenerator.h  
 M  +323 -323  tools/modcalcaltaz.cpp  
 M  +29 -29    tools/modcalcaltaz.h  
 M  +158 -158  tools/modcalcangdist.cpp  
 M  +16 -16    tools/modcalcangdist.h  
 M  +181 -181  tools/modcalcapcoord.cpp  
 M  +21 -21    tools/modcalcapcoord.h  
 M  +199 -199  tools/modcalcdaylength.cpp  
 M  +25 -25    tools/modcalcdaylength.h  
 M  +237 -237  tools/modcalceclipticcoords.cpp  
 M  +18 -18    tools/modcalceclipticcoords.h  
 M  +208 -208  tools/modcalcgalcoord.cpp  
 M  +18 -18    tools/modcalcgalcoord.h  
 M  +225 -225  tools/modcalcgeodcoord.cpp  
 M  +37 -37    tools/modcalcgeodcoord.h  
 M  +132 -132  tools/modcalcjd.cpp  
 M  +16 -16    tools/modcalcjd.h  
 M  +366 -366  tools/modcalcplanets.cpp  
 M  +28 -28    tools/modcalcplanets.h  
 M  +214 -214  tools/modcalcsidtime.cpp  
 M  +26 -26    tools/modcalcsidtime.h  
 M  +241 -241  tools/modcalcvizequinox.cpp  
 M  +16 -16    tools/modcalcvizequinox.h  
 M  +317 -317  tools/modcalcvlsr.cpp  
 M  +33 -33    tools/modcalcvlsr.h  
 M  +470 -470  tools/observinglist.cpp  
 M  +91 -91    tools/observinglist.h  
 M  +342 -342  tools/obslistwizard.cpp  
 M  +53 -53    tools/obslistwizard.h  
 M  +142 -142  tools/planetviewer.cpp  
 M  +32 -32    tools/planetviewer.h  
 M  +205 -205  tools/pvplotwidget.cpp  
 M  +15 -15    tools/pvplotwidget.h  
 M  +33 -33    tools/scriptargwidgets.cpp  
 M  +131 -131  tools/scriptargwidgets.h  
 M  +2071 -2071 tools/scriptbuilder.cpp  
 M  +143 -143  tools/scriptbuilder.h  
 M  +134 -134  tools/scriptfunction.cpp  
 M  +37 -37    tools/scriptfunction.h  
 M  +331 -331  tools/wutdialog.cpp  
 M  +69 -69    tools/wutdialog.h  
 M  +1 -1      widgets/calcframe.cpp  
 M  +7 -7      widgets/calcframe.h  
 M  +1 -1      widgets/clicklabel.cpp  
 M  +7 -7      widgets/clicklabel.h  
 M  +82 -82    widgets/dmsbox.cpp  
 M  +83 -83    widgets/dmsbox.h  
 M  +49 -49    widgets/draglistbox.cpp  
 M  +16 -16    widgets/draglistbox.h  
 M  +127 -127  widgets/fitshistogramdraw.cpp  
 M  +33 -33    widgets/fitshistogramdraw.h  
 M  +6 -6      widgets/logedit.cpp  
 M  +8 -8      widgets/logedit.h  
 M  +3 -3      widgets/magnitudespinbox.cpp  
 M  +7 -7      widgets/magnitudespinbox.h  
 M  +59 -59    widgets/mapcanvas.cpp  
 M  +50 -50    widgets/mapcanvas.h  
 M  +106 -106  widgets/thumbimage.cpp  
 M  +21 -21    widgets/thumbimage.h  
 M  +102 -102  widgets/timebox.cpp  
 M  +42 -42    widgets/timebox.h  
 M  +146 -146  widgets/timespinbox.cpp  
 M  +29 -29    widgets/timespinbox.h  
 M  +28 -28    widgets/timestepbox.cpp  
 M  +23 -23    widgets/timestepbox.h  
 M  +52 -52    widgets/timeunitbox.cpp  
 M  +43 -43    widgets/timeunitbox.h  




More information about the Kstars-devel mailing list