summaryrefslogtreecommitdiffstats
path: root/editor/debugger/script_editor_debugger.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-04 14:25:33 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-04 14:25:33 +0100
commit6c390b620d231d5f2febf05bddd758582513fe46 (patch)
treee117eb6e32b69e0efb3938ec29819e6ccd9ddeae /editor/debugger/script_editor_debugger.cpp
parentb66d16fcc9094735cec5259a9714b131fa410594 (diff)
parenta3cb1b096fcecad03562205bd285ebefc816c64a (diff)
downloadredot-engine-6c390b620d231d5f2febf05bddd758582513fe46.tar.gz
Merge pull request #84445 from Rubonnek/add-const-references-clang-tidy
Add const references detected by clang-tidy
Diffstat (limited to 'editor/debugger/script_editor_debugger.cpp')
-rw-r--r--editor/debugger/script_editor_debugger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp
index 7077bce9f7..d926bd0f12 100644
--- a/editor/debugger/script_editor_debugger.cpp
+++ b/editor/debugger/script_editor_debugger.cpp
@@ -1687,7 +1687,7 @@ void ScriptEditorDebugger::_item_menu_id_pressed(int p_option) {
// Parse back the `file:line @ method()` string.
const Vector<String> file_line_number = ci->get_text(1).split("@")[0].strip_edges().split(":");
ERR_FAIL_COND_MSG(file_line_number.size() < 2, "Incorrect C++ source stack trace file:line format (please report).");
- const String file = file_line_number[0];
+ const String &file = file_line_number[0];
const int line_number = file_line_number[1].to_int();
// Construct a GitHub repository URL and open it in the user's default web browser.