aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/shader/ast.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-10-05 08:48:15 -0400
committerLioncash <mathew1800@gmail.com>2019-10-05 09:14:27 -0400
commit2d2dd7bf7b4d69a3d7dfcba45f53848d3e7ff66c (patch)
tree2ab00d25523ddae29e33fc8c81ce8bed62de18c4 /src/video_core/shader/ast.cpp
parentb1178c30cf69dcca4201a8e9bc46ffb61c79d8e5 (diff)
video_core/ast: Make ShowCurrentState() take a string_view instead of std::string
Allows the function to be non-allocating in terms of the output string.
Diffstat (limited to 'src/video_core/shader/ast.cpp')
-rw-r--r--src/video_core/shader/ast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/ast.cpp b/src/video_core/shader/ast.cpp
index 6eba780252..436d45f4bb 100644
--- a/src/video_core/shader/ast.cpp
+++ b/src/video_core/shader/ast.cpp
@@ -549,7 +549,7 @@ bool ASTManager::DirectlyRelated(const ASTNode& first, const ASTNode& second) co
return min->GetParent() == max->GetParent();
}
-void ASTManager::ShowCurrentState(std::string state) {
+void ASTManager::ShowCurrentState(std::string_view state) {
LOG_CRITICAL(HW_GPU, "\nState {}:\n\n{}\n", state, Print());
SanityCheck();
}