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>
(cherry picked from commit 384422dd25)
r14.0.x
Slávek Banko 6 years ago
parent bab1263066
commit 6a2c7f1fed
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -59,7 +59,7 @@ include( ConfigureChecks.cmake )
###### global compiler settings ###### global compiler settings
add_definitions( -DHAVE_CONFIG_H -UQT_NO_ASCII_CAST ) add_definitions( -DHAVE_CONFIG_H )
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )

@ -659,7 +659,7 @@ namespace KBibTeX
TQStrList urlList; TQStrList urlList;
if ( TQTextDrag::decode( event, text ) && KURL( text ).isValid() ) if ( TQTextDrag::decode( event, text ) && KURL( text ).isValid() )
urlList.append( text ); urlList.append( text.utf8() );
if ( !urlList.isEmpty() || TQUriDrag::decode( event, urlList ) ) if ( !urlList.isEmpty() || TQUriDrag::decode( event, urlList ) )
{ {

Loading…
Cancel
Save