diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-26 10:46:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2016-09-26 11:03:28 +0000 |
commit | 5bc4bcfde4955e3e48255310500102775ba4af23 (patch) | |
tree | c0fb1a6a7ccb5315d3a9905c43942a5a9f3a6fb3 /sc/qa/unit/tiledrendering | |
parent | 771d106280b13033805dfa3497048a86cce8ac45 (diff) |
CppunitTest_sc_tiledrendering: std::string::find -> OString::startsWith
Change-Id: Ic7185cc0430e7007b1e4f27ba5c43d947405e198
Reviewed-on: https://gerrit.libreoffice.org/29292
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/qa/unit/tiledrendering')
-rw-r--r-- | sc/qa/unit/tiledrendering/tiledrendering.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/tiledrendering/tiledrendering.cxx b/sc/qa/unit/tiledrendering/tiledrendering.cxx index eaffc6dbacc3..9fdefb5e22a4 100644 --- a/sc/qa/unit/tiledrendering/tiledrendering.cxx +++ b/sc/qa/unit/tiledrendering/tiledrendering.cxx @@ -440,8 +440,8 @@ public: break; case LOK_CALLBACK_INVALIDATE_TILES: { - std::string text(pPayload); - if (text.find("EMPTY") != std::string::npos) + OString text(pPayload); + if (text.startsWith("EMPTY")) { m_bFullInvalidateTiles = true; } |