From 57440dfcbd552f1e601d74d888f3887b126f8cb1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 6 Jul 2016 18:10:32 +0200 Subject: clang-tidy performance-faster-string-find Change-Id: Ia645dd9c5301d93abea90646ad32e94b8cb8ce17 --- libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libreofficekit') diff --git a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx index a264af94833e..f0aabdfc9b84 100644 --- a/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx +++ b/libreofficekit/qa/gtktiledviewer/gtktiledviewer.cxx @@ -890,7 +890,7 @@ static void signalCommand(LOKDocView* pLOKDocView, char* pPayload, gpointer /*pD TiledWindow& rWindow = lcl_getTiledWindow(GTK_WIDGET(pLOKDocView)); std::string aPayload(pPayload); - size_t nPosition = aPayload.find("="); + size_t nPosition = aPayload.find('='); if (nPosition != std::string::npos) { std::string aKey = aPayload.substr(0, nPosition); -- cgit