Skip to content

Commit 719fb58

Browse files
committed
tidy: addressing clang-tidy warnings and errors.
1 parent 50752b7 commit 719fb58

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.clang-tidy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Checks: >
4040
-fuchsia-overloaded-operator,
4141
-fuchsia-statically-constructed-objects,
4242
-google-readability-casting,
43+
-google-readability-todo,
4344
-google-runtime-references,
4445
-hicpp-avoid-c-arrays,
4546
-hicpp-deprecated-headers,
@@ -81,6 +82,7 @@ Checks: >
8182
-readability-convert-member-functions-to-static,
8283
-readability-identifier-length,
8384
-readability-implicit-bool-conversion,
85+
-readability-isolate-declaration,
8486
-readability-qualified-auto,
8587
-readability-redundant-member-init,
8688

src/cairo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class Context : public DrawingContext {
5252
double x_scale = 1.0, y_scale = 1.0;
5353
if (auto s = cairo_get_target (cr))
5454
cairo_surface_get_device_scale (s, &x_scale, &y_scale);
55-
return static_cast<double> (y_scale);
55+
return y_scale;
5656
}
5757

5858
void save() override {

0 commit comments

Comments
 (0)