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 2 months ago
parent
commit
5e7b4208af
No known key found for this signature in database GPG Key ID: 608F5293A04BE668
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      CMakeLists.txt
  2. +1
    -1
      src/app/captureFrame.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" )


+ 1
- 1
src/app/captureFrame.cpp View File

@@ -107,7 +107,7 @@ public:
return;

const TQString type = dialog.currentFilter().remove( 0, 2 ).upper();
if( m_frame.save( fileName, type ) )
if( m_frame.save( fileName, type.utf8() ) )
message( i18n("%1 saved successfully").arg( fileName ) );
else
message( i18n("Sorry, could not save %1").arg( fileName ) );


Loading…
Cancel
Save