From 43a6b59539ad573436f43303e9fbe17c12dc9c84 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 10 Jul 2017 12:42:24 +0200 Subject: simplify some OUString compareTo calls to either startsWith or == or != Change-Id: Ie4b4662f5b8e4532cbc1ab36910389e0b3d41ef0 Reviewed-on: https://gerrit.libreoffice.org/39750 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cui/source/dialogs/screenshotannotationdlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cui') diff --git a/cui/source/dialogs/screenshotannotationdlg.cxx b/cui/source/dialogs/screenshotannotationdlg.cxx index d29e6995f7a4..412ee78fd2ae 100644 --- a/cui/source/dialogs/screenshotannotationdlg.cxx +++ b/cui/source/dialogs/screenshotannotationdlg.cxx @@ -364,7 +364,7 @@ IMPL_LINK_NOARG(ScreenshotAnnotationDlg_Impl, saveButtonHandler, Button*, void) INetURLObject aConfirmedURL(aConfirmedName); OUString aCurrentExtension(aConfirmedURL.getExtension()); - if (!aCurrentExtension.isEmpty() && 0 != aCurrentExtension.compareTo("png")) + if (!aCurrentExtension.isEmpty() && aCurrentExtension != "png") { aConfirmedURL.removeExtension(); aCurrentExtension.clear(); -- cgit