From 0f6edc935d7e2ade37b24e87ab908c72a7885444 Mon Sep 17 00:00:00 2001 From: Arto Jonsson Date: Mon, 26 Oct 2009 00:02:53 +0200 Subject: [PATCH] Const correctness --- projects/lib/src/uciengine.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/lib/src/uciengine.cpp b/projects/lib/src/uciengine.cpp index 511f821..9c5df5d 100644 --- a/projects/lib/src/uciengine.cpp +++ b/projects/lib/src/uciengine.cpp @@ -335,8 +335,8 @@ EngineOption* UciEngine::parseOption(const QString& str) void UciEngine::parseLine(const QString& line) { - QString command = line.section(' ', 0, 0); - QString args = line.right(line.length() - command.length() - 1); + const QString command = line.section(' ', 0, 0); + const QString args = line.right(line.length() - command.length() - 1); if (command == "bestmove") { @@ -376,8 +376,8 @@ void UciEngine::parseLine(const QString& line) } else if (command == "id") { - QString tag = args.section(' ', 0, 0); - QString tagVal = args.section(' ', 1); + const QString tag = args.section(' ', 0, 0); + const QString tagVal = args.section(' ', 1); if (tag == "name" && name() == "UciEngine") setName(tagVal); -- 2.11.4.GIT