From: kan Date: Fri, 15 Jul 2011 11:18:38 +0000 (+0000) Subject: Fixed 64bit portability src/SUIT/SUIT_TreeModel.cxx X-Git-Tag: CTH_V17a~28 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8f3660c2001aa9e788d670761c16e30cb98c3188;p=modules%2Fgui.git Fixed 64bit portability src/SUIT/SUIT_TreeModel.cxx --- diff --git a/src/SUIT/SUIT_TreeModel.cxx b/src/SUIT/SUIT_TreeModel.cxx index 693578758..95ccb9e6b 100755 --- a/src/SUIT/SUIT_TreeModel.cxx +++ b/src/SUIT/SUIT_TreeModel.cxx @@ -1752,8 +1752,6 @@ QMimeData* SUIT_TreeModel::mimeData( const QModelIndexList& indexes ) const QDataStream stream( &encodedData, QIODevice::WriteOnly ); - bool is64 = ( sizeof( void* ) == 64 ); - QSet anAdded; foreach( QModelIndex index, indexes ) { @@ -1769,10 +1767,11 @@ QMimeData* SUIT_TreeModel::mimeData( const QModelIndexList& indexes ) const return 0; } - if ( is64 ) - stream << (quint64)dataObj; - else - stream << (quint32)dataObj; +#if (defined _WIN64) || (defined __amd64__) + stream << (quint64)dataObj; +#else + stream << (quint32)dataObj; +#endif anAdded.insert( dataObj ); } }