Skip to content

Commit 215c38b

Browse files
committed
fix readability-avoid-const-params-in-decls
Signed-off-by: Matt Liberty <[email protected]>
1 parent 07f7d55 commit 215c38b

37 files changed

+138
-150
lines changed

src/cts/src/HTreeBuilder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class SegmentBuilder
3232
Clock& clock,
3333
ClockSubNet& drivingSubNet,
3434
const TechChar& techChar,
35-
const unsigned techCharDistUnit,
35+
unsigned techCharDistUnit,
3636
TreeBuilder* tree);
3737

3838
void build(const std::string& forceBuffer = "");

src/drt/src/db/infra/KDTree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class KDTree
4242

4343
void radiusSearchHelper(KDTreeNode* node,
4444
const Point& target,
45-
const frSquaredDistance radius_square,
45+
frSquaredDistance radius_square,
4646
const Orientation2D& orient,
4747
std::vector<int>& result) const;
4848

src/dst/include/dst/JobMessage.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class JobMessage
8181
= "\r\nENDOFPACKET\r\n"; // ENDOFPACKET SEQUENCE
8282

8383
template <class Archive>
84-
void serialize(Archive& ar, const unsigned int version);
84+
void serialize(Archive& ar, unsigned int version);
8585

8686
friend class boost::serialization::access;
8787

src/grt/src/RepairAntennas.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class RepairAntennas
232232
odb::dbOrientType getRowOrient(const odb::Point& point);
233233
RoutePtPinsMap findRoutePtPins(Net* net);
234234
bool pinOverlapsGSegment(const odb::Point& pin_position,
235-
const int pin_layer,
235+
int pin_layer,
236236
const std::vector<odb::Rect>& pin_boxes,
237237
const GRoute& route);
238238

src/grt/src/heatMap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ class RoutingCongestionDataSource : public gui::GlobalRoutingDataSource,
2424
bool populateMap() override;
2525
void combineMapData(bool base_has_value,
2626
double& base,
27-
const double new_data,
28-
const double data_area,
29-
const double intersection_area,
30-
const double rect_area) override;
27+
double new_data,
28+
double data_area,
29+
double intersection_area,
30+
double rect_area) override;
3131
void correctMapScale(HeatMapDataSource::Map& map) override;
3232
std::string formatValue(double value, bool legend) const override;
3333

src/grt/src/heatMapRudy.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ class RUDYDataSource : public gui::GlobalRoutingDataSource,
4949
bool populateMap() override;
5050
void combineMapData(bool base_has_value,
5151
double& base,
52-
const double new_data,
53-
const double data_area,
54-
const double intersection_area,
55-
const double rect_area) override;
52+
double new_data,
53+
double data_area,
54+
double intersection_area,
55+
double rect_area) override;
5656

5757
private:
5858
grt::GlobalRouter* grouter_;

src/gui/include/gui/heatMap.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ class HeatMapDataSource
181181
void addToMap(const odb::Rect& region, double value);
182182
virtual void combineMapData(bool base_has_value,
183183
double& base,
184-
const double new_data,
185-
const double data_area,
186-
const double intersection_area,
187-
const double rect_area)
184+
double new_data,
185+
double data_area,
186+
double intersection_area,
187+
double rect_area)
188188
= 0;
189189
virtual void correctMapScale(Map& map) {}
190190
void updateMapColors();

src/gui/src/clockWidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class ClockNetGraphicsViewItem : public QGraphicsItem
123123
bool top_anchor,
124124
const QPointF& trunk_junction);
125125
void addLeafPath(const QPointF& start,
126-
const qreal y_trunk,
126+
qreal y_trunk,
127127
const QPointF& end);
128128

129129
void setNetInformation();
@@ -188,7 +188,7 @@ class ClockNodeGraphicsViewItem : public QGraphicsObject
188188
void updateView();
189189

190190
protected:
191-
void addDelayFin(QPainterPath& path, const qreal delay) const;
191+
void addDelayFin(QPainterPath& path, qreal delay) const;
192192
void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override;
193193

194194
private:

src/gui/src/inspector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ class SelectedItemModel : public QStandardItemModel
116116
void makeItemEditor(const std::string& name,
117117
QStandardItem* item,
118118
const Selected& selected,
119-
const EditorItemDelegate::EditType type,
119+
EditorItemDelegate::EditType type,
120120
const Descriptor::Editor& editor);
121121

122122
const QColor selectable_item_;

src/gui/src/tclCmdHighlighter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class TclCmdHighlighter : public QSyntaxHighlighter
7878
void initOther();
7979

8080
static std::string escape(const std::string& preregex);
81-
static CommandRulePtr buildKeywordRule(const int command_id,
81+
static CommandRulePtr buildKeywordRule(int command_id,
8282
const std::string& command,
8383
const std::string& start_of_command,
8484
const std::string& end_of_command,
@@ -88,7 +88,7 @@ class TclCmdHighlighter : public QSyntaxHighlighter
8888
const std::string& start_of_command,
8989
const std::string& end_of_command);
9090
static CommandRulePtr buildRule(const std::string& pattern);
91-
static CommandRulePtr buildRule(const int command_id,
91+
static CommandRulePtr buildRule(int command_id,
9292
const std::string& pattern);
9393
static ArgumentRulePtr buildArgumentRule(const std::vector<std::string>& args,
9494
const QTextCharFormat* format);

0 commit comments

Comments
 (0)