Browse Source

Added controlled conversions to char* instead of automatic ascii conversions.

The definition of -UTQT_NO_ASCII_CAST is no longer needed.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 1 year ago
parent
commit
2a7cf2dd00
Signed by: SlavekB <slavek.banko@axis.cz> GPG Key ID: 608F5293A04BE668
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +2
    -2
      src/menuhandler.cpp

+ 1
- 1
CMakeLists.txt View File

@@ -59,7 +59,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" )


+ 2
- 2
src/menuhandler.cpp View File

@@ -845,9 +845,9 @@ void MenuHandler::populateList( KServiceGroup *serviceGroup, TastyListView *list
TQString subText= TQString();
if( !isSeparator )
{
if( s->comment() != NULL && !s->comment().isEmpty() )
if( !s->comment().isNull() && !s->comment().isEmpty() )
subText = s->comment();
else if( s->genericName() && !s->genericName().isEmpty() )
else if( !s->genericName().isNull() && !s->genericName().isEmpty() )
subText = s->genericName();
}



Loading…
Cancel
Save