Skip to content
Permalink
Browse files

Merge pull request #3663 from nyalldawson/clazy3

Clazy qt5 optimisations - round 2
  • Loading branch information
nyalldawson committed Oct 24, 2016
2 parents b4e3101 + 2fab1b8 commit 796711031bae499f4be86ab5769bd709a6e52fe8
Showing with 622 additions and 491 deletions.
  1. +1 −1 python/analysis/vector/qgszonalstatistics.sip
  2. +1 −1 python/core/auth/qgsauthmethod.sip
  3. +1 −1 python/core/composer/qgscomposermapgrid.sip
  4. +6 −6 python/core/composer/qgscomposernodesitem.sip
  5. +2 −2 python/core/composer/qgscomposerpolygon.sip
  6. +2 −2 python/core/composer/qgscomposerpolyline.sip
  7. +1 −1 python/core/dxf/qgsdxfexport.sip
  8. +1 −1 python/core/layertree/qgslayertreemodel.sip
  9. +2 −2 python/core/qgsattributetableconfig.sip
  10. +5 −5 python/core/qgsdataitem.sip
  11. +2 −2 python/core/qgsdatetimestatisticalsummary.sip
  12. +1 −1 python/core/qgsinterval.sip
  13. +1 −1 python/core/qgsmaplayerdependency.sip
  14. +1 −1 python/core/qgsmaplayerproxymodel.sip
  15. +1 −1 python/core/qgsmaprenderercustompainterjob.sip
  16. +1 −1 python/core/qgsmapsettings.sip
  17. +1 −1 python/core/qgsproject.sip
  18. +1 −1 python/core/qgsrendercontext.sip
  19. +1 −1 python/core/qgssnappingconfig.sip
  20. +5 −5 python/core/qgssqlstatement.sip
  21. +2 −2 python/core/qgsstatisticalsummary.sip
  22. +2 −2 python/core/qgsstringstatisticalsummary.sip
  23. +2 −2 python/core/qgsvectorfilewriter.sip
  24. +2 −2 python/core/qgsvectorlayer.sip
  25. +1 −1 python/core/qgsvectorlayereditbuffer.sip
  26. +1 −1 python/core/qgsvectorlayereditpassthrough.sip
  27. +1 −1 python/core/qgsvectorlayerundocommand.sip
  28. +2 −2 python/core/qgsvectorsimplifymethod.sip
  29. +1 −1 python/core/raster/qgsrasterdataprovider.sip
  30. +1 −1 python/core/raster/qgsrasterfilewriter.sip
  31. +1 −0 python/core/raster/qgsrasterprojector.sip
  32. +1 −1 python/core/symbology-ng/qgscategorizedsymbolrenderer.sip
  33. +1 −1 python/core/symbology-ng/qgsgraduatedsymbolrenderer.sip
  34. +1 −1 python/core/symbology-ng/qgspointdistancerenderer.sip
  35. +1 −1 python/core/symbology-ng/qgsrulebasedrenderer.sip
  36. +1 −1 python/core/symbology-ng/qgssymbollayerutils.sip
  37. +1 −1 python/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.sip
  38. +4 −0 python/gui/layertree/qgslayertreeembeddedwidgetregistry.sip
  39. +2 −2 python/gui/qgsdatadefinedbutton.sip
  40. +1 −1 python/gui/qgsdialog.sip
  41. +1 −1 python/gui/qgsexternalresourcewidget.sip
  42. +1 −1 python/gui/qgsfieldcombobox.sip
  43. +1 −1 python/gui/qgsfieldexpressionwidget.sip
  44. +1 −1 python/gui/qgsfieldproxymodel.sip
  45. +5 −5 python/gui/qgsmaplayeractionregistry.sip
  46. +1 −1 python/gui/qgsmaplayerconfigwidgetfactory.sip
  47. +2 −2 python/gui/qgsmaptoolcapture.sip
  48. +3 −3 python/gui/qgsmaptoolidentify.sip
  49. +2 −2 python/gui/qgspanelwidget.sip
  50. +1 −1 python/gui/symbology-ng/qgsrendererpropertiesdialog.sip
  51. +1 −1 python/gui/symbology-ng/qgssvgselectorwidget.sip
  52. +1 −1 python/server/qgsrequesthandler.sip
  53. +1 −1 python/server/qgswmserver.sip
  54. +1 −1 python/server/qgswmsprojectparser.sip
  55. +4 −4 src/analysis/openstreetmap/qgsosmdatabase.h
  56. +1 −1 src/analysis/vector/qgszonalstatistics.cpp
  57. +4 −1 src/analysis/vector/qgszonalstatistics.h
  58. +1 −1 src/app/main.cpp
  59. +1 −1 src/app/nodetool/qgsselectedfeature.cpp
  60. +1 −1 src/app/nodetool/qgsselectedfeature.h
  61. +5 −3 src/app/qgisapp.cpp
  62. +1 −1 src/app/qgisapp.h
  63. +2 −2 src/app/qgsfieldsproperties.cpp
  64. +2 −2 src/app/qgsfieldsproperties.h
  65. +1 −1 src/app/qgslabelinggui.cpp
  66. +1 −1 src/app/qgslabelinggui.h
  67. +2 −2 src/app/qgslayerstylingwidget.cpp
  68. +2 −2 src/app/qgslayerstylingwidget.h
  69. +1 −1 src/app/qgsmeasuretool.cpp
  70. +1 −1 src/app/qgsmeasuretool.h
  71. +1 −0 src/app/qgsvectorlayerproperties.cpp
  72. +1 −1 src/core/auth/qgsauthmethod.h
  73. +2 −2 src/core/composer/qgscomposermapgrid.cpp
  74. +2 −2 src/core/composer/qgscomposermapgrid.h
  75. +7 −7 src/core/composer/qgscomposernodesitem.cpp
  76. +6 −6 src/core/composer/qgscomposernodesitem.h
  77. +2 −2 src/core/composer/qgscomposerpolygon.cpp
  78. +2 −2 src/core/composer/qgscomposerpolygon.h
  79. +2 −2 src/core/composer/qgscomposerpolyline.cpp
  80. +2 −2 src/core/composer/qgscomposerpolyline.h
  81. +2 −2 src/core/dxf/qgsdxfexport.cpp
  82. +2 −2 src/core/dxf/qgsdxfexport.h
  83. +1 −1 src/core/geometry/qgsgeometryutils.cpp
  84. +1 −1 src/core/geometry/qgsgeometryutils.h
  85. +1 −1 src/core/geometry/qgsgeos.h
  86. +1 −1 src/core/layertree/qgslayertreemodel.cpp
  87. +1 −1 src/core/layertree/qgslayertreemodel.h
  88. +1 −0 src/core/pal/costcalculator.cpp
  89. +1 −1 src/core/pal/layer.h
  90. +6 −0 src/core/pal/pal.h
  91. +2 −0 src/core/pal/palstat.h
  92. +3 −0 src/core/pal/problem.h
  93. +5 −0 src/core/pal/rtree.hpp
  94. +2 −0 src/core/pal/util.h
  95. +1 −1 src/core/qgis.h
  96. +2 −2 src/core/qgsattributetableconfig.cpp
  97. +2 −2 src/core/qgsattributetableconfig.h
  98. +1 −0 src/core/qgscolorramp.cpp
  99. +6 −0 src/core/qgsconnectionpool.h
  100. +3 −3 src/core/qgsdataitem.cpp
  101. +25 −8 src/core/qgsdataitem.h
  102. +1 −1 src/core/qgsdatetimestatisticalsummary.cpp
  103. +2 −2 src/core/qgsdatetimestatisticalsummary.h
  104. +1 −0 src/core/qgsexpression.cpp
  105. +2 −2 src/core/qgsfeaturerequest.cpp
  106. +2 −2 src/core/qgsfeaturerequest.h
  107. +9 −9 src/core/qgsfields.h
  108. +3 −0 src/core/qgsgml.h
  109. +4 −4 src/core/qgsinterval.cpp
  110. +3 −3 src/core/qgsinterval.h
  111. +1 −1 src/core/qgslabelingengine.h
  112. +3 −2 src/core/qgslayerdefinition.cpp
  113. +1 −1 src/core/qgslogger.h
  114. +1 −1 src/core/qgsmaplayerdependency.h
  115. +1 −1 src/core/qgsmaplayerproxymodel.cpp
  116. +1 −1 src/core/qgsmaplayerproxymodel.h
  117. +1 −1 src/core/qgsmaprenderercustompainterjob.cpp
  118. +1 −1 src/core/qgsmaprenderercustompainterjob.h
  119. +1 −1 src/core/qgsmapsettings.cpp
  120. +1 −1 src/core/qgsmapsettings.h
  121. +2 −1 src/core/qgsogcutils.cpp
  122. +1 −1 src/core/qgsproject.cpp
  123. +1 −1 src/core/qgsproject.h
  124. +1 −1 src/core/qgsrendercontext.cpp
  125. +1 −1 src/core/qgsrendercontext.h
  126. +1 −1 src/core/qgssnappingconfig.cpp
  127. +1 −1 src/core/qgssnappingconfig.h
  128. +1 −1 src/core/qgssnappingutils.cpp
  129. +1 −1 src/core/qgssnappingutils.h
  130. +1 −1 src/core/qgssqlexpressioncompiler.cpp
  131. +1 −1 src/core/qgssqlexpressioncompiler.h
  132. +1 −1 src/core/qgssqlstatement.cpp
  133. +6 −6 src/core/qgssqlstatement.h
  134. +2 −2 src/core/qgssqlstatementparser.yy
  135. +1 −1 src/core/qgsstatisticalsummary.cpp
  136. +2 −2 src/core/qgsstatisticalsummary.h
  137. +1 −1 src/core/qgsstringstatisticalsummary.cpp
  138. +2 −2 src/core/qgsstringstatisticalsummary.h
  139. +2 −2 src/core/qgsvectorfilewriter.cpp
  140. +2 −2 src/core/qgsvectorfilewriter.h
  141. +2 −2 src/core/qgsvectorlayer.cpp
  142. +2 −2 src/core/qgsvectorlayer.h
  143. +1 −1 src/core/qgsvectorlayereditbuffer.cpp
  144. +1 −1 src/core/qgsvectorlayereditbuffer.h
  145. +1 −1 src/core/qgsvectorlayereditpassthrough.cpp
  146. +1 −1 src/core/qgsvectorlayereditpassthrough.h
  147. +1 −0 src/core/qgsvectorlayerjoinbuffer.cpp
  148. +1 −1 src/core/qgsvectorlayerundocommand.cpp
  149. +1 −1 src/core/qgsvectorlayerundocommand.h
  150. +2 −2 src/core/qgsvectorsimplifymethod.h
  151. +1 −1 src/core/raster/qgsrasterdataprovider.h
  152. +5 −1 src/core/raster/qgsrasterfilewriter.cpp
  153. +1 −1 src/core/raster/qgsrasterfilewriter.h
  154. +3 −0 src/core/raster/qgsrasterprojector.h
  155. +6 −0 src/core/simplify/effectivearea.h
  156. +5 −5 src/core/symbology-ng/qgsarrowsymbollayer.cpp
  157. +4 −3 src/core/symbology-ng/qgscategorizedsymbolrenderer.cpp
  158. +1 −1 src/core/symbology-ng/qgscategorizedsymbolrenderer.h
  159. +5 −4 src/core/symbology-ng/qgsgraduatedsymbolrenderer.cpp
  160. +1 −1 src/core/symbology-ng/qgsgraduatedsymbolrenderer.h
  161. +8 −4 src/core/symbology-ng/qgsinvertedpolygonrenderer.cpp
  162. +1 −0 src/core/symbology-ng/qgsmarkersymbollayer.cpp
  163. +1 −1 src/core/symbology-ng/qgspointdistancerenderer.cpp
  164. +1 −1 src/core/symbology-ng/qgspointdistancerenderer.h
  165. +1 −1 src/core/symbology-ng/qgsrenderer.cpp
  166. +2 −2 src/core/symbology-ng/qgsrenderer.h
  167. +1 −1 src/core/symbology-ng/qgsrulebasedrenderer.cpp
  168. +1 −1 src/core/symbology-ng/qgsrulebasedrenderer.h
  169. +5 −3 src/core/symbology-ng/qgssinglesymbolrenderer.cpp
  170. +1 −1 src/core/symbology-ng/qgssinglesymbolrenderer.h
  171. +1 −1 src/core/symbology-ng/qgssymbollayerutils.cpp
  172. +1 −1 src/core/symbology-ng/qgssymbollayerutils.h
  173. +2 −1 src/gui/attributetable/qgsattributetablefiltermodel.cpp
  174. +1 −1 src/gui/attributetable/qgsattributetablefiltermodel.h
  175. +1 −1 src/gui/attributetable/qgsfeaturelistview.cpp
  176. +1 −1 src/gui/attributetable/qgsfeaturelistview.h
  177. +1 −1 src/gui/attributetable/qgsfeatureselectionmodel.cpp
  178. +1 −1 src/gui/attributetable/qgsfeatureselectionmodel.h
  179. +1 −0 src/gui/attributetable/qgsorganizetablecolumnsdialog.cpp
  180. +1 −1 src/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.cpp
  181. +1 −1 src/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.h
  182. +1 −1 src/gui/editorwidgets/qgsvaluemapconfigdlg.cpp
  183. +1 −1 src/gui/editorwidgets/qgsvaluemapconfigdlg.h
  184. +1 −0 src/gui/editorwidgets/qgsvaluerelationsearchwidgetwrapper.cpp
  185. +1 −0 src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
  186. +5 −0 src/gui/layertree/qgslayertreeembeddedwidgetregistry.h
  187. +2 −2 src/gui/qgsattributeform.h
  188. +2 −2 src/gui/qgscomposerview.cpp
  189. +2 −2 src/gui/qgscomposerview.h
  190. +2 −2 src/gui/qgsdatadefinedbutton.cpp
  191. +2 −2 src/gui/qgsdatadefinedbutton.h
  192. +1 −0 src/gui/qgsdatumtransformdialog.cpp
  193. +1 −1 src/gui/qgsdialog.cpp
  194. +5 −1 src/gui/qgsdialog.h
  195. +1 −1 src/gui/qgsexternalresourcewidget.cpp
  196. +1 −1 src/gui/qgsexternalresourcewidget.h
  197. +1 −1 src/gui/qgsfieldcombobox.cpp
  198. +1 −1 src/gui/qgsfieldcombobox.h
  199. +1 −1 src/gui/qgsfieldexpressionwidget.cpp
  200. +1 −1 src/gui/qgsfieldexpressionwidget.h
  201. +1 −1 src/gui/qgsfieldproxymodel.cpp
  202. +1 −1 src/gui/qgsfieldproxymodel.h
  203. +4 −4 src/gui/qgsmaplayeractionregistry.cpp
  204. +5 −5 src/gui/qgsmaplayeractionregistry.h
  205. +1 −1 src/gui/qgsmaplayercombobox.h
  206. +1 −1 src/gui/qgsmaplayerconfigwidgetfactory.cpp
  207. +1 −1 src/gui/qgsmaplayerconfigwidgetfactory.h
  208. +5 −5 src/gui/qgsmaplayerstylemanagerwidget.cpp
  209. +5 −5 src/gui/qgsmaplayerstylemanagerwidget.h
  210. +2 −2 src/gui/qgsmaptoolcapture.cpp
  211. +2 −2 src/gui/qgsmaptoolcapture.h
  212. +3 −3 src/gui/qgsmaptoolidentify.cpp
  213. +3 −3 src/gui/qgsmaptoolidentify.h
  214. +1 −1 src/gui/qgspanelwidget.cpp
  215. +2 −2 src/gui/qgspanelwidget.h
  216. +1 −1 src/gui/qgssourceselectdialog.cpp
  217. +1 −1 src/gui/qgssourceselectdialog.h
  218. +2 −2 src/gui/qgssqlcomposerdialog.cpp
  219. +1 −1 src/gui/qgssqlcomposerdialog.h
  220. +2 −0 src/gui/raster/qgsrastertransparencywidget.cpp
  221. +1 −1 src/gui/symbology-ng/qgsrendererpropertiesdialog.cpp
  222. +1 −1 src/gui/symbology-ng/qgsrendererpropertiesdialog.h
  223. +2 −1 src/gui/symbology-ng/qgssvgselectorwidget.cpp
  224. +5 −1 src/gui/symbology-ng/qgssvgselectorwidget.h
  225. +1 −1 src/gui/symbology-ng/qgssymbolwidgetcontext.h
  226. +4 −4 src/plugins/georeferencer/qgsleastsquares.cpp
  227. +4 −4 src/plugins/georeferencer/qgsleastsquares.h
  228. +4 −1 src/plugins/qgisplugin.h
  229. +1 −1 src/plugins/spatialquery/qgsspatialqueryplugin.cpp
  230. +1 −1 src/plugins/spatialquery/qgsspatialqueryplugin.h
  231. +2 −2 src/plugins/topology/topolError.cpp
  232. +2 −2 src/plugins/topology/topolError.h
  233. +3 −1 src/providers/arcgisrest/qgsafsprovider.cpp
  234. +1 −1 src/providers/arcgisrest/qgsafsprovider.h
  235. +1 −1 src/providers/arcgisrest/qgsamsprovider.cpp
  236. +1 −1 src/providers/arcgisrest/qgsamsprovider.h
  237. +1 −1 src/providers/db2/qgsdb2geometrycolumns.cpp
  238. +2 −2 src/providers/db2/qgsdb2geometrycolumns.h
  239. +2 −2 src/providers/db2/qgsdb2provider.cpp
  240. +2 −2 src/providers/db2/qgsdb2provider.h
  241. +6 −6 src/providers/db2/qgsdb2sourceselect.cpp
  242. +6 −6 src/providers/db2/qgsdb2sourceselect.h
  243. +1 −0 src/providers/db2/qgsdb2tablemodel.cpp
  244. +1 −1 src/providers/gdal/qgsgdaldataitems.cpp
  245. +1 −1 src/providers/gdal/qgsgdaldataitems.h
  246. +1 −1 src/providers/gdal/qgsgdalprovider.cpp
  247. +1 −1 src/providers/gdal/qgsgdalprovider.h
  248. +14 −14 src/providers/grass/qgsgrass.cpp
  249. +16 −16 src/providers/grass/qgsgrass.h
  250. +2 −2 src/providers/grass/qgsgrassimport.cpp
  251. +2 −2 src/providers/grass/qgsgrassimport.h
  252. +3 −3 src/providers/grass/qgsgrassprovider.cpp
  253. +3 −3 src/providers/grass/qgsgrassprovider.h
  254. +4 −4 src/providers/grass/qgsgrassprovidermodule.cpp
  255. +5 −5 src/providers/grass/qgsgrassprovidermodule.h
  256. +2 −2 src/providers/grass/qgsgrassrasterprovider.cpp
  257. +5 −2 src/providers/grass/qgsgrassrasterprovider.h
  258. +2 −2 src/providers/grass/qgsgrassvectormaplayer.cpp
  259. +2 −2 src/providers/grass/qgsgrassvectormaplayer.h
  260. +3 −3 src/providers/mssql/qgsmssqlsourceselect.cpp
  261. +3 −3 src/providers/mssql/qgsmssqlsourceselect.h
  262. +1 −0 src/providers/mssql/qgsmssqltablemodel.cpp
  263. +2 −2 src/providers/ogr/qgsogrconnpool.h
  264. +1 −1 src/providers/ogr/qgsogrdataitems.cpp
  265. +1 −1 src/providers/ogr/qgsogrdataitems.h
  266. +7 −2 src/providers/ogr/qgsogrprovider.cpp
  267. +1 −1 src/providers/ogr/qgsogrprovider.h
  268. +2 −2 src/providers/postgres/qgspostgresconn.cpp
  269. +2 −2 src/providers/postgres/qgspostgresconn.h
  270. +2 −2 src/providers/postgres/qgspostgresconnpool.h
  271. +2 −2 src/providers/spatialite/qgsspatialiteconnpool.h
  272. +2 −0 src/providers/spatialite/qgsspatialiteprovider.h
  273. +1 −1 src/providers/virtual/qgsvirtuallayerqueryparser.h
  274. +1 −1 src/providers/virtual/qgsvirtuallayersourceselect.cpp
  275. +1 −1 src/providers/virtual/qgsvirtuallayersourceselect.h
  276. +4 −0 src/providers/virtual/qgsvirtuallayersqlitemodule.cpp
  277. +2 −0 src/providers/wcs/qgswcsprovider.cpp
  278. +1 −1 src/providers/wfs/qgswfsfeatureiterator.cpp
  279. +1 −1 src/providers/wfs/qgswfsfeatureiterator.h
  280. +3 −3 src/providers/wfs/qgswfsshareddata.cpp
  281. +2 −2 src/providers/wfs/qgswfsshareddata.h
  282. +1 −1 src/providers/wms/qgswmscapabilities.cpp
  283. +1 −1 src/providers/wms/qgswmscapabilities.h
  284. +1 −1 src/providers/wms/qgswmsprovider.cpp
  285. +3 −2 src/providers/wms/qgswmsprovider.h
  286. +2 −2 src/server/qgshttprequesthandler.cpp
  287. +2 −2 src/server/qgshttprequesthandler.h
  288. +2 −2 src/server/qgsrequesthandler.h
  289. +2 −0 src/server/qgsserverprojectparser.cpp
  290. +1 −1 src/server/qgssoaprequesthandler.h
  291. +2 −1 src/server/qgswmsprojectparser.cpp
  292. +1 −1 src/server/qgswmsprojectparser.h
  293. +1 −1 src/server/qgswmsserver.cpp
  294. +1 −1 src/server/qgswmsserver.h
@@ -31,7 +31,7 @@ class QgsZonalStatistics
typedef QFlags<QgsZonalStatistics::Statistic> Statistics;

QgsZonalStatistics( QgsVectorLayer* polygonLayer, const QString& rasterFile, const QString& attributePrefix = "", int rasterBand = 1,
const QgsZonalStatistics::Statistics& stats = QgsZonalStatistics::Statistics( QgsZonalStatistics::Count | QgsZonalStatistics::Sum | QgsZonalStatistics::Mean) );
QgsZonalStatistics::Statistics stats = QgsZonalStatistics::Statistics( QgsZonalStatistics::Count | QgsZonalStatistics::Sum | QgsZonalStatistics::Mean) );

/** Starts the calculation
@return 0 in case of success*/
@@ -105,7 +105,7 @@ class QgsAuthMethod : QObject
void setVersion( int version );

/** Set the support expansions (points in providers where the authentication is injected) of the auth method */
void setExpansions( const QgsAuthMethod::Expansions& expansions );
void setExpansions( QgsAuthMethod::Expansions expansions );
/** Set list of data providers this auth method supports */
void setDataProviders( const QStringList& dataproviders );
};
@@ -684,7 +684,7 @@ class QgsComposerMapGrid : QgsComposerMapItem
* @see frameSideFlags
* @see testFrameSideFlag
*/
void setFrameSideFlags( const FrameSideFlags& flags );
void setFrameSideFlags( FrameSideFlags flags );

/** Sets whether the grid frame is drawn for a certain side of the map item.
* @param flag flag for grid frame side
@@ -5,8 +5,8 @@ class QgsComposerNodesItem: QgsComposerItem
%End
public:

QgsComposerNodesItem( QString mTagName, QgsComposition* c );
QgsComposerNodesItem( QString mTagName, QPolygonF polygon, QgsComposition* c );
QgsComposerNodesItem( const QString& mTagName, QgsComposition* c );
QgsComposerNodesItem( const QString& mTagName, const QPolygonF& polygon, QgsComposition* c );
~QgsComposerNodesItem();

/** Add a node in current shape.
@@ -16,7 +16,7 @@ class QgsComposerNodesItem: QgsComposerItem
* true. Typically, if this flag is true, the new node has to be nearest
* than radius to the shape to be added.
*/
bool addNode( const QPointF &pt, const bool checkArea = true, const double radius = 10 );
bool addNode( QPointF pt, const bool checkArea = true, const double radius = 10 );

/** Set a tag to indicate if we want to draw or not the shape's nodes.
* @param display
@@ -27,7 +27,7 @@ class QgsComposerNodesItem: QgsComposerItem
* @param index the index of the node to move
* @param node is the new position in scene coordinate
*/
bool moveNode( const int index, const QPointF &node );
bool moveNode( const int index, QPointF node );

/** \brief Reimplementation of QCanvasItem::paint - draw on canvas */
void paint( QPainter* painter, const QStyleOptionGraphicsItem* itemStyle, QWidget* pWidget );
@@ -85,7 +85,7 @@ class QgsComposerNodesItem: QgsComposerItem
protected:

/** Method called in addNode. */
virtual bool _addNode( const int nodeIndex, const QPointF &newPoint, const double radius ) = 0;
virtual bool _addNode( const int nodeIndex, QPointF newPoint, const double radius ) = 0;

/** Method called in removeNode. */
virtual bool _removeNode( const int nodeIndex ) = 0;
@@ -104,7 +104,7 @@ class QgsComposerNodesItem: QgsComposerItem
void rescaleToFitBoundingBox();

/** Compute an euclidian distance between 2 nodes. */
double computeDistance(const QPointF &pt1, const QPointF &pt2) const;
double computeDistance( QPointF pt1, QPointF pt2) const;

/** Update the current scene rectangle for this item. */
void updateSceneRect();
@@ -6,7 +6,7 @@ class QgsComposerPolygon: QgsComposerNodesItem
public:

QgsComposerPolygon( QgsComposition* c );
QgsComposerPolygon( QPolygonF polygon, QgsComposition* c );
QgsComposerPolygon( const QPolygonF& polygon, QgsComposition* c );
~QgsComposerPolygon();

/** Overridden to return shape name */
@@ -23,7 +23,7 @@ class QgsComposerPolygon: QgsComposerNodesItem

protected:

bool _addNode( const int indexPoint, const QPointF &newPoint, const double radius );
bool _addNode( const int indexPoint, QPointF newPoint, const double radius );

bool _removeNode( const int indexPoint );

@@ -6,7 +6,7 @@ class QgsComposerPolyline: QgsComposerNodesItem
public:

QgsComposerPolyline( QgsComposition* c );
QgsComposerPolyline( QPolygonF polyline, QgsComposition* c );
QgsComposerPolyline( const QPolygonF& polyline, QgsComposition* c );
~QgsComposerPolyline();

/** Overridden to return shape name */
@@ -23,7 +23,7 @@ class QgsComposerPolyline: QgsComposerNodesItem

protected:

bool _addNode( const int indexPoint, const QPointF &newPoint, const double radius );
bool _addNode( const int indexPoint, QPointF newPoint, const double radius );

bool _removeNode( const int indexPoint );

@@ -301,6 +301,6 @@ class QgsDxfExport
* @param fid id of feature
* @param layer dxf layer of feature
*/
void registerDxfLayer( QString layerId, QgsFeatureId fid, QString layer );
void registerDxfLayer( const QString& layerId, QgsFeatureId fid, const QString& layer );

};
@@ -65,7 +65,7 @@ class QgsLayerTreeModel : QAbstractItemModel
typedef QFlags<QgsLayerTreeModel::Flag> Flags;

//! Set OR-ed combination of model flags
void setFlags( const Flags& f );
void setFlags( Flags f );
//! Enable or disable a model flag
void setFlag( Flag f, bool on = true );
//! Return OR-ed combination of model flags
@@ -107,7 +107,7 @@ class QgsAttributeTableConfig
/**
* Set the style of the action widget
*/
void setActionWidgetStyle( const ActionWidgetStyle& actionWidgetStyle );
void setActionWidgetStyle( ActionWidgetStyle actionWidgetStyle );

/**
* Serialize to XML on layer save
@@ -165,5 +165,5 @@ class QgsAttributeTableConfig
* Set the sort order
* @note Added in 2.16
*/
void setSortOrder( const Qt::SortOrder& sortOrder );
void setSortOrder( Qt::SortOrder sortOrder );
};
@@ -160,12 +160,12 @@ class QgsDataItem : QObject
typedef QFlags<QgsDataItem::Capability> Capabilities;

// This will _write_ selected crs in data source
virtual bool setCrs( QgsCoordinateReferenceSystem crs );
virtual bool setCrs( const QgsCoordinateReferenceSystem& crs );

// ### QGIS 3 - rename to capabilities()
virtual Capabilities capabilities2() const;

virtual void setCapabilities( const Capabilities& capabilities );
virtual void setCapabilities( Capabilities capabilities );

// static methods

@@ -208,7 +208,7 @@ class QgsDataItem : QObject

protected:
virtual void populate( const QVector<QgsDataItem*>& children );
virtual void refresh( QVector<QgsDataItem*> children );
virtual void refresh( const QVector<QgsDataItem*>& children );
/** The item is scheduled to be deleted. E.g. if deleteLater() is called when
* item is in Populating state (createChildren() running in another thread),
* the deferredDelete() returns true and item will be deleted once Populating finished.
@@ -378,7 +378,7 @@ class QgsDirectoryItem : QgsDataCollectionItem
// static QVector<QLibrary*> mLibraries;

/** Check if the given path is hidden from the browser model */
static bool hiddenPath( QString path );
static bool hiddenPath( const QString& path );

public slots:
virtual void childrenCreated();
@@ -482,7 +482,7 @@ class QgsZipItem : QgsDataCollectionItem

static QString vsiPrefix( const QString& uri );

static QgsDataItem* itemFromPath( QgsDataItem* parent, QString path, QString name ) /Factory/;
static QgsDataItem* itemFromPath( QgsDataItem* parent, const QString& path, const QString& name ) /Factory/;
//! @note available in python as itemFromFilePath
static QgsDataItem* itemFromPath( QgsDataItem* parent, const QString& filePath, const QString& name, const QString& path ) /Factory,PyName=itemFromFilePath/;

@@ -34,7 +34,7 @@ class QgsDateTimeStatisticalSummary
/** Constructor for QgsDateTimeStatisticalSummary
* @param stats flags for statistics to calculate
*/
QgsDateTimeStatisticalSummary( const QgsDateTimeStatisticalSummary::Statistics& stats = All );
QgsDateTimeStatisticalSummary( QgsDateTimeStatisticalSummary::Statistics stats = All );

/** Returns flags which specify which statistics will be calculated. Some statistics
* are always calculated (eg count).
@@ -47,7 +47,7 @@ class QgsDateTimeStatisticalSummary
* @param stats flags for statistics to calculate
* @see statistics
*/
void setStatistics( const Statistics& stats );
void setStatistics( Statistics stats );

/** Resets the calculated values
*/
@@ -124,7 +124,7 @@ class QgsInterval
*/
void setValid( bool valid );

bool operator==( const QgsInterval& other ) const;
bool operator==( QgsInterval other ) const;

/** Converts a string to an interval
* @param string string to parse
@@ -19,7 +19,7 @@ class QgsMapLayerDependency
};

//! Standard constructor
QgsMapLayerDependency( QString layerId, Type type = DataDependency, Origin origin = FromUser );
QgsMapLayerDependency( const QString& layerId, Type type = DataDependency, Origin origin = FromUser );

//! Return the dependency type
Type type() const;
@@ -41,7 +41,7 @@ class QgsMapLayerProxyModel : QSortFilterProxyModel
* @param filters are Filter flags
* @note added in 2.3
*/
QgsMapLayerProxyModel* setFilters( const Filters& filters );
QgsMapLayerProxyModel* setFilters( Filters filters );
const Filters& filters() const;

//! offer the possibility to except some layers to be listed
@@ -38,7 +38,7 @@ class QgsMapRendererCustomPainterJob : QgsMapRendererJob
* Ideally the "wait for finished" method should not be used at all. The code triggering
* rendering should not need to actively wait for rendering to finish.
*/
void waitForFinishedWithEventLoop( const QEventLoop::ProcessEventsFlags& flags = QEventLoop::AllEvents );
void waitForFinishedWithEventLoop( QEventLoop::ProcessEventsFlags flags = QEventLoop::AllEvents );

/**
* Render the map synchronously in this thread. The function does not return until the map
@@ -122,7 +122,7 @@ class QgsMapSettings
typedef QFlags<QgsMapSettings::Flag> Flags;

//! Set combination of flags that will be used for rendering
void setFlags( const Flags& flags );
void setFlags( Flags flags );
//! Enable or disable a particular flag (other flags are not affected)
void setFlag( Flag flag, bool on = true );
//! Return combination of flags used for rendering
@@ -336,7 +336,7 @@ class QgsProject : QObject
/**
* Set a list of layers which should not be taken into account on map identification
*/
void setNonIdentifiableLayers( QList<QgsMapLayer*> layers );
void setNonIdentifiableLayers( const QList<QgsMapLayer*>& layers );

/**
* Set a list of layers which should not be taken into account on map identification
@@ -30,7 +30,7 @@ class QgsRenderContext
/** Set combination of flags that will be used for rendering.
* @note added in QGIS 2.14
*/
void setFlags( const QgsRenderContext::Flags& flags );
void setFlags( QgsRenderContext::Flags flags );

/** Enable or disable a particular flag (other flags are not affected)
* @note added in QGIS 2.14
@@ -176,7 +176,7 @@ class QgsSnappingConfig
QgsSnappingConfig::IndividualLayerSettings individualLayerSettings( QgsVectorLayer* vl ) const;

//! set individual layer snappings settings (applied if mode is AdvancedConfiguration)
void setIndividualLayerSettings( QgsVectorLayer* vl, QgsSnappingConfig::IndividualLayerSettings individualLayerSettings );
void setIndividualLayerSettings( QgsVectorLayer* vl, const QgsSnappingConfig::IndividualLayerSettings& individualLayerSettings );

/**
* Compare this configuration to other.
@@ -113,7 +113,7 @@ class QgsSQLStatement
* otherwise the original string.
* @see quotedString(), quotedIdentifier()
*/
static QString quotedIdentifierIfNeeded( QString name );
static QString quotedIdentifierIfNeeded( const QString& name );

/** Remove double quotes from an identifier.
* @see quotedIdentifier()
@@ -340,7 +340,7 @@ class QgsSQLStatement
class NodeFunction : QgsSQLStatement::Node
{
public:
NodeFunction( QString name, QgsSQLStatement::NodeList* args /Transfer/ );
NodeFunction( const QString name, QgsSQLStatement::NodeList* args /Transfer/ );
~NodeFunction();

/** Return function name */
@@ -474,7 +474,7 @@ class QgsSQLStatement
{
public:
NodeJoin( QgsSQLStatement::NodeTableDef* tabledef /Transfer/, QgsSQLStatement::Node* onExpr /Transfer/, QgsSQLStatement::JoinType type );
NodeJoin( QgsSQLStatement::NodeTableDef* tabledef /Transfer/, QList<QString> usingColumns, QgsSQLStatement::JoinType type );
NodeJoin( QgsSQLStatement::NodeTableDef* tabledef /Transfer/, const QList<QString>& usingColumns, QgsSQLStatement::JoinType type );

/** Table definition */
QgsSQLStatement::NodeTableDef* tableDef() const;
@@ -525,13 +525,13 @@ class QgsSQLStatement
NodeSelect( QList<QgsSQLStatement::NodeTableDef*> tableList /Transfer/, QList<QgsSQLStatement::NodeSelectedColumn*> columns /Transfer/, bool distinct );

/** Set joins */
void setJoins( QList<QgsSQLStatement::NodeJoin*> joins /Transfer/ );
void setJoins( const QList<QgsSQLStatement::NodeJoin*>& joins /Transfer/ );
/** Append a join */
void appendJoin( QgsSQLStatement::NodeJoin* join /Transfer/ );
/** Set where clause */
void setWhere( QgsSQLStatement::Node* where /Transfer/ );
/** Set order by columns */
void setOrderBy( QList<QgsSQLStatement::NodeColumnSorted*> orderBy /Transfer/ );
void setOrderBy( const QList<QgsSQLStatement::NodeColumnSorted*>& orderBy /Transfer/ );

/** Return the list of tables */
QList<QgsSQLStatement::NodeTableDef*> tables() const;
@@ -44,7 +44,7 @@ class QgsStatisticalSummary
/** Constructor for QgsStatisticalSummary
* @param stats flags for statistics to calculate
*/
QgsStatisticalSummary( const QgsStatisticalSummary::Statistics& stats = QgsStatisticalSummary::All );
QgsStatisticalSummary( QgsStatisticalSummary::Statistics stats = QgsStatisticalSummary::All );

virtual ~QgsStatisticalSummary();

@@ -59,7 +59,7 @@ class QgsStatisticalSummary
* @param stats flags for statistics to calculate
* @see statistics
*/
void setStatistics( const QgsStatisticalSummary::Statistics& stats );
void setStatistics( QgsStatisticalSummary::Statistics stats );

/** Resets the calculated values
*/
@@ -38,7 +38,7 @@ class QgsStringStatisticalSummary
/** Constructor for QgsStringStatistics
* @param stats flags for statistics to calculate
*/
QgsStringStatisticalSummary( const QgsStringStatisticalSummary::Statistics& stats = All );
QgsStringStatisticalSummary( QgsStringStatisticalSummary::Statistics stats = All );

/** Returns flags which specify which statistics will be calculated. Some statistics
* are always calculated (eg count).
@@ -51,7 +51,7 @@ class QgsStringStatisticalSummary
* @param stats flags for statistics to calculate
* @see statistics
*/
void setStatistics( const Statistics& stats );
void setStatistics( Statistics stats );

/** Resets the calculated values
*/
@@ -208,7 +208,7 @@ class QgsVectorFileWriter
QgsWkbTypes::Type overrideGeometryType = QgsWkbTypes::Unknown,
bool forceMulti = false,
bool includeZ = false,
QgsAttributeList attributes = QgsAttributeList(),
const QgsAttributeList& attributes = QgsAttributeList(),
FieldValueConverter* fieldValueConverter = nullptr
);

@@ -253,7 +253,7 @@ class QgsVectorFileWriter
QgsWkbTypes::Type overrideGeometryType = QgsWkbTypes::Unknown,
bool forceMulti = false,
bool includeZ = false,
QgsAttributeList attributes = QgsAttributeList(),
const QgsAttributeList& attributes = QgsAttributeList(),
FieldValueConverter* fieldValueConverter = nullptr
);

@@ -547,7 +547,7 @@ class QgsVectorLayer : QgsMapLayer
* @see deselect(QgsFeatureId)
* @see selectByExpression()
*/
void modifySelection( QgsFeatureIds selectIds, QgsFeatureIds deselectIds );
void modifySelection( const QgsFeatureIds& selectIds, const QgsFeatureIds& deselectIds );

/** Select not selected features and deselect selected ones */
void invertSelection();
@@ -728,7 +728,7 @@ class QgsVectorLayer : QgsMapLayer
*/
bool writeStyle( QDomNode& node, QDomDocument& doc, QString& errorMessage ) const;

bool writeSld( QDomNode& node, QDomDocument& doc, QString& errorMessage, QgsStringMap& props ) const;
bool writeSld( QDomNode& node, QDomDocument& doc, QString& errorMessage, const QgsStringMap& props ) const;
bool readSld( const QDomNode& node, QString& errorMessage );

/**
@@ -31,7 +31,7 @@ class QgsVectorLayerEditBuffer : QObject
virtual bool deleteFeatures( const QgsFeatureIds& fid );

/** Change feature's geometry */
virtual bool changeGeometry( QgsFeatureId fid, QgsGeometry geom );
virtual bool changeGeometry( QgsFeatureId fid, const QgsGeometry& geom );

/** Changed an attribute value (but does not commit it) */
virtual bool changeAttributeValue( QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue = QVariant() );

0 comments on commit 7967110

Please sign in to comment.
You can’t perform that action at this time.