Skip to content

Commit

Permalink
West-const apps/
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkewley committed Jun 18, 2024
1 parent c25f247 commit 27f411e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/hellotriangle/hellotriangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ namespace
private:
void impl_on_draw() override
{
const auto secs = App::get().frame_delta_since_startup().count();
const auto transform = identity<Transform>().with_rotation(angle_axis(Radians{secs}, Vec3{0.0f, 1.0f, 0.0f}));
const auto seconds_since_startup = App::get().frame_delta_since_startup().count();
const auto transform = identity<Transform>().with_rotation(angle_axis(Radians{seconds_since_startup}, Vec3{0.0f, 1.0f, 0.0f}));
graphics::draw(mesh_, transform, material_, camera_);
camera_.render_to_screen();
}
Expand Down
5 changes: 2 additions & 3 deletions apps/osc/osc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ int main(int argc, char* argv[])
std::vector<std::string_view> unnamedArgs;
for (int i = 1; i < argc; ++i)
{
std::string_view const arg{argv[i]}; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)
const std::string_view arg{argv[i]}; // NOLINT(cppcoreguidelines-pro-bounds-pointer-arithmetic)

if (arg.empty())
{
Expand All @@ -46,8 +46,7 @@ int main(int argc, char* argv[])
auto screen = std::make_unique<osc::MainUIScreen>();

// load each unnamed arg as a file in the UI
for (auto const& unnamedArg : unnamedArgs)
{
for (const auto& unnamedArg : unnamedArgs) {
screen->open(unnamedArg);
}

Expand Down

0 comments on commit 27f411e

Please sign in to comment.