From 8071c8cc56c938d08cf328ae2f50c4e22d2f094c Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 19 Feb 2016 11:38:39 +0100 Subject: [PATCH] desktop: loplugin:loopvartoosmall Change-Id: Ic17077b48e0ebf1fe72ba5a5c401dd0e2c609c68 --- desktop/qa/desktop_lib/test_desktop_lib.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop/qa/desktop_lib/test_desktop_lib.cxx b/desktop/qa/desktop_lib/test_desktop_lib.cxx index 0c44341b364f..a562ab2f8b21 100644 --- a/desktop/qa/desktop_lib/test_desktop_lib.cxx +++ b/desktop/qa/desktop_lib/test_desktop_lib.cxx @@ -777,7 +777,7 @@ void DesktopLOKTest::testSheetSelections() char* pCopiedContent = pDocument->pClass->getTextSelection(pDocument, nullptr, &pUsedMimeType); std::vector pExpected = {5, 6, 7, 8, 9}; std::istringstream iss(pCopiedContent); - for (uint i = 0; i < pExpected.size(); i++) + for (size_t i = 0; i < pExpected.size(); i++) { std::string token; iss >> token; @@ -823,7 +823,7 @@ void DesktopLOKTest::testSheetSelections() char* pCopiedContent = pDocument->pClass->getTextSelection(pDocument, nullptr, &pUsedMimeType); std::vector pExpected = { 8 }; std::istringstream iss(pCopiedContent); - for (uint i = 0; i < pExpected.size(); i++) + for (size_t i = 0; i < pExpected.size(); i++) { std::string token; iss >> token;