From 0f2104cd745329852e6a6d9c93f6af7c5a8c646a Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Tue, 9 Jan 2018 18:45:59 +0900 Subject: starmath: getLength() > 0 -> !isEmpty() Change-Id: I72e56e8e8cad77084bf771df8d85cb7d85712437 Reviewed-on: https://gerrit.libreoffice.org/47640 Tested-by: Jenkins Reviewed-by: Takeshi Abe --- starmath/source/dialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'starmath/source/dialog.cxx') diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index 3a92349c82f1..ca70ff1626c8 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -1929,7 +1929,7 @@ void SmSymDefineDialog::UpdateButtons() OUString aTmpSymbolName (pSymbols->GetText()), aTmpSymbolSetName (pSymbolSets->GetText()); - if (aTmpSymbolName.getLength() > 0 && aTmpSymbolSetName.getLength() > 0) + if (!aTmpSymbolName.isEmpty() && !aTmpSymbolSetName.isEmpty()) { // are all settings equal? //! (Font-, Style- and SymbolSet name comparison is not case sensitive) -- cgit