From bb945af0aca2de81585218d5f0453e15282e1c09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Tue, 7 Jul 2020 17:44:15 +0200 Subject: [PATCH] Removed unnecessary automatic conversions to char*. The definition of -UTQT_NO_ASCII_CAST is no longer needed. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- CMakeLists.txt | 2 +- domino/domino.cpp | 2 +- dominoConfig/dominoconf.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e1bfe08..d6c1985 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ include( ConfigureChecks.cmake ) ###### global compiler settings -add_definitions( -DHAVE_CONFIG_H -UTQT_NO_ASCII_CAST ) +add_definitions( -DHAVE_CONFIG_H ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) diff --git a/domino/domino.cpp b/domino/domino.cpp index 85a076e..2fc0231 100644 --- a/domino/domino.cpp +++ b/domino/domino.cpp @@ -6510,7 +6510,7 @@ void DominoStyle::drawComplexControl(ComplexControl control, painter.drawLine(fr.x()+4, fr.height(), fr.width()-4, fr.height()); } - if(tb->popup() && (!tb->iconSet().isNull() || tb->text() || tb->pixmap())) { + if(tb->popup() && (!tb->iconSet().isNull() || !tb->text().isEmpty() || tb->pixmap())) { TQString isEnabled = enabled ? "1" : "0"; TQPixmap* arrow; TQColor color = tb->palette().active().buttonText(); diff --git a/dominoConfig/dominoconf.cpp b/dominoConfig/dominoconf.cpp index 6aed86b..8d249eb 100644 --- a/dominoConfig/dominoconf.cpp +++ b/dominoConfig/dominoconf.cpp @@ -3786,7 +3786,7 @@ void DominoStyleConfig::slotLoad() { SchemeEntry * entry; TQString fName; for (entry = schemeList->first(); entry; entry = schemeList->next()) { - if(!strcmp(entry->getSchemeName(), sName)) { + if (entry->getSchemeName() == sName) { fName = entry->getFileName(); break; } @@ -3839,7 +3839,7 @@ void DominoStyleConfig::slotDelete() { SchemeEntry * entry; TQString fName; for (entry = schemeList->first(); entry; entry = schemeList->next()) { - if(!strcmp(entry->getSchemeName(), sName)) { + if (entry->getSchemeName() == sName) { fName = entry->getFileName(); schemeList->remove(entry); break; @@ -3888,7 +3888,7 @@ void DominoStyleConfig::slotDelPerm(TQListViewItem* li) { TQString selected = li->text(0); for ( entry = schemeList->first(); entry; entry = schemeList->next() ) { - if(!strcmp(entry->getSchemeName(), selected)) { + if (entry->getSchemeName() == selected) { deleteButton->setEnabled(entry->isDeletable()); return; }