[Misc] Replaced const with constexpr where possible
This commit is contained in:
committed by
Radosław Gliński
parent
c4f1bf27ef
commit
47f327e848
@@ -55,7 +55,7 @@ void DebugWindow::DebugDialog::OnDraw(ImGuiIO& io) {
|
||||
debug_window_.DrawFrame(io);
|
||||
}
|
||||
|
||||
static const std::string kBaseTitle = "Xenia Debugger";
|
||||
static constexpr std::string_view kBaseTitle = "Xenia Debugger";
|
||||
|
||||
DebugWindow::DebugWindow(Emulator* emulator,
|
||||
xe::ui::WindowedAppContext& app_context)
|
||||
@@ -1460,7 +1460,7 @@ void DebugWindow::UpdateCache() {
|
||||
auto object_table = kernel_state->object_table();
|
||||
|
||||
app_context_.CallInUIThread([this]() {
|
||||
std::string title = kBaseTitle;
|
||||
std::string title = std::string(kBaseTitle);
|
||||
switch (processor_->execution_state()) {
|
||||
case cpu::ExecutionState::kEnded:
|
||||
title += " (ended)";
|
||||
|
||||
@@ -137,8 +137,8 @@ class DebugWindow : public cpu::DebugListener {
|
||||
// The current state of the UI. Use this to synchronize multiple parts of the
|
||||
// UI.
|
||||
struct ImState {
|
||||
static const int kRightPaneThreads = 0;
|
||||
static const int kRightPaneMemory = 1;
|
||||
static constexpr int kRightPaneThreads = 0;
|
||||
static constexpr int kRightPaneMemory = 1;
|
||||
int right_pane_tab = kRightPaneThreads;
|
||||
|
||||
cpu::ThreadDebugInfo* thread_info = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user