Skip to content

Commit

Permalink
chore: cpp errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hazer committed May 29, 2024
1 parent b97f3a1 commit 2898ae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/platform/linux/input/inputtino_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ namespace platf {
inputtino::Result<inputtino::PenTablet> pen;
};

static float
inline float
deg2rad(float degree) {
return degree * (M_PI / 180.f);

Check warning on line 95 in src/platform/linux/input/inputtino_common.h

View check run for this annotation

Codecov / codecov/patch

src/platform/linux/input/inputtino_common.h#L94-L95

Added lines #L94 - L95 were not covered by tests
}
Expand Down
4 changes: 2 additions & 2 deletions src/platform/linux/input/inputtino_keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ namespace platf::keyboard {
std::stringstream ss;

Check warning on line 26 in src/platform/linux/input/inputtino_keyboard.cpp

View check run for this annotation

Codecov / codecov/patch

src/platform/linux/input/inputtino_keyboard.cpp#L25-L26

Added lines #L25 - L26 were not covered by tests
ss << std::hex << std::setfill('0');
for (const auto &ch : str) {
ss << ch;
ss << static_cast<uint32_t>(ch);
}

std::string hex_unicode(ss.str());
std::transform(hex_unicode.begin(), hex_unicode.end(), hex_unicode.begin(), ::toupper);
std::ranges::transform(hex_unicode, hex_unicode.begin(), ::toupper);
return hex_unicode;

Check warning on line 34 in src/platform/linux/input/inputtino_keyboard.cpp

View check run for this annotation

Codecov / codecov/patch

src/platform/linux/input/inputtino_keyboard.cpp#L33-L34

Added lines #L33 - L34 were not covered by tests
}

Expand Down

0 comments on commit 2898ae8

Please sign in to comment.