Skip to content

Commit

Permalink
Silence more clang-tidy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
kevingranade committed Jul 10, 2021
1 parent aa126fe commit 955ab31
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/auto_note.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ void auto_note_manager_gui::show()
.query_string();

if( !custom_symbol_popup.canceled() ) {
std::string custom_symbol_str = custom_symbol_popup.text();
const std::string &custom_symbol_str = custom_symbol_popup.text();
if( custom_symbol_str.empty() ) {
custom_symbol_cache.erase( currentItem );
} else {
Expand Down
16 changes: 8 additions & 8 deletions tests/point_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ TEST_CASE( "rectangle_containment_raw", "[point]" )

TEST_CASE( "rectangle_overlapping_inclusive", "[point]" )
{
inclusive_rectangle<point> r1( point( 0, 0 ), point( 2,
2 ) ); // NOLINT(cata-use-named-point-constants)
// NOLINTNEXTLINE(cata-use-named-point-constants)
inclusive_rectangle<point> r1( point( 0, 0 ), point( 2, 2 ) );
inclusive_rectangle<point> r2( point( 2, 2 ), point( 3, 3 ) );
inclusive_rectangle<point> r3( point( 0, 0 ), point( 2,
1 ) ); // NOLINT(cata-use-named-point-constants)
// NOLINT(cata-use-named-point-constants)
inclusive_rectangle<point> r3( point( 0, 0 ), point( 2, 1 ) );
inclusive_rectangle<point> r4( point( -2, -4 ), point( 4, -1 ) );
inclusive_rectangle<point> r5( point( -1, -3 ), point( 0, -2 ) );

Expand Down Expand Up @@ -64,11 +64,11 @@ TEST_CASE( "rectangle_overlapping_inclusive", "[point]" )

TEST_CASE( "rectangle_overlapping_half_open", "[point]" )
{
half_open_rectangle<point> r1( point( 0, 0 ), point( 2,
2 ) ); // NOLINT(cata-use-named-point-constants)
// NOLINT(cata-use-named-point-constants)
half_open_rectangle<point> r1( point( 0, 0 ), point( 2, 2 ) );
half_open_rectangle<point> r2( point( 2, 2 ), point( 3, 3 ) );
half_open_rectangle<point> r3( point( 0, 0 ), point( 2,
1 ) ); // NOLINT(cata-use-named-point-constants)
// NOLINT(cata-use-named-point-constants)
half_open_rectangle<point> r3( point( 0, 0 ), point( 2, 1 ) );
half_open_rectangle<point> r4( point( -2, -4 ), point( 4, -1 ) );
half_open_rectangle<point> r5( point( -1, -3 ), point( 0, -2 ) );

Expand Down

0 comments on commit 955ab31

Please sign in to comment.