Skip to content

Commit

Permalink
Put editor stuff in separate namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-johansson committed Oct 27, 2023
1 parent 488eb90 commit 7eafd17
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions modules/editor/inc/tactile/editor/cmd/command.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "tactile/core/prelude.hpp"
#include "tactile/editor/api.hpp"

namespace tactile {
namespace tactile::editor {

class TACTILE_EDITOR_API ICommand {
public:
Expand Down Expand Up @@ -38,4 +38,4 @@ class TACTILE_EDITOR_API ICommand {
}
};

} // namespace tactile
} // namespace tactile::editor
4 changes: 2 additions & 2 deletions modules/editor/inc/tactile/editor/cmd/command_stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "tactile/editor/api.hpp"
#include "tactile/editor/cmd/command.hpp"

namespace tactile {
namespace tactile::editor {

/**
* \brief Manages a history of commands.
Expand Down Expand Up @@ -186,4 +186,4 @@ class CommandStack final {
[[nodiscard]] auto _get_next_command_index() const -> usize;
};

} // namespace tactile
} // namespace tactile::editor
4 changes: 2 additions & 2 deletions modules/editor/src/tactile/editor/cmd/command_stack.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "tactile/core/debug/assert.hpp"

namespace tactile {
namespace tactile::editor {

CommandStack::CommandStack(const usize capacity)
: mCapacity {capacity}
Expand Down Expand Up @@ -164,4 +164,4 @@ auto CommandStack::_get_next_command_index() const -> usize
return mCurrentIndex.has_value() ? (*mCurrentIndex + 1) : 0;
}

} // namespace tactile
} // namespace tactile::editor
1 change: 1 addition & 0 deletions modules/editor/test/cmd/command_stack_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <gtest/gtest.h>

using namespace tactile;
using namespace tactile::editor;
using namespace tactile::int_literals;

namespace {
Expand Down

0 comments on commit 7eafd17

Please sign in to comment.