Fix minor style defects found by cppcheck

* add const keyword for constant functions
* reduce the scope of variables if possible

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
This commit is contained in:
HyukWoo Park 2020-10-06 19:10:52 +09:00 committed by Boram Bae
commit 714d398364
12 changed files with 29 additions and 33 deletions

View file

@ -683,9 +683,8 @@ int main(int argc, char* argv[])
}
if (strcmp(argv[i], "--debugger-wait-source") == 0) {
StringRef* sourceName;
StringRef* clientSourceRef;
while (true) {
clientSourceRef = context->getClientSource(&sourceName);
StringRef* clientSourceRef = context->getClientSource(&sourceName);
if (!clientSourceRef) {
break;
}