Kaydet (Commit) 04b8bac4 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

finalize gcc 4.7 string literal operators

üst 6b58e58d
...@@ -380,7 +380,7 @@ void SAL_CALL Player::setMediaTime( double fTime ) ...@@ -380,7 +380,7 @@ void SAL_CALL Player::setMediaTime( double fTime )
if( !isPlaying() ) if( !isPlaying() )
gst_element_set_state( mpPlaybin, GST_STATE_PAUSED ); gst_element_set_state( mpPlaybin, GST_STATE_PAUSED );
DBG( "seek to: %"SAL_PRIdINT64" ns original: %lf s", gst_position, fTime ); DBG( "seek to: %" SAL_PRIdINT64 " ns original: %lf s", gst_position, fTime );
} }
} }
......
...@@ -56,7 +56,7 @@ void TRACE( char const * s ) ...@@ -56,7 +56,7 @@ void TRACE( char const * s )
if (s_file) if (s_file)
{ {
oslThreadIdentifier t = osl_getThreadIdentifier(0); oslThreadIdentifier t = osl_getThreadIdentifier(0);
fprintf( s_file, "log [t_id=%"SAL_PRIuUINT32"]: %s\n", t, s ); fprintf( s_file, "log [t_id=%" SAL_PRIuUINT32 "]: %s\n", t, s );
fflush( s_file ); fflush( s_file );
} }
} }
...@@ -67,7 +67,7 @@ void TRACEN( char const * s, long n ) ...@@ -67,7 +67,7 @@ void TRACEN( char const * s, long n )
if (s_file) if (s_file)
{ {
oslThreadIdentifier t = osl_getThreadIdentifier(0); oslThreadIdentifier t = osl_getThreadIdentifier(0);
fprintf( s_file, "log [t_id=%"SAL_PRIuUINT32"]: %s%ld\n", t, s, n ); fprintf( s_file, "log [t_id=%" SAL_PRIuUINT32 "]: %s%ld\n", t, s, n );
fflush( s_file ); fflush( s_file );
} }
} }
...@@ -78,7 +78,7 @@ void TRACES( char const* s, char const* s2 ) ...@@ -78,7 +78,7 @@ void TRACES( char const* s, char const* s2 )
if (s_file) if (s_file)
{ {
oslThreadIdentifier t = osl_getThreadIdentifier(0); oslThreadIdentifier t = osl_getThreadIdentifier(0);
fprintf( s_file, "log [t_id=%"SAL_PRIuUINT32"]: %s %s\n", t, s, s2 ); fprintf( s_file, "log [t_id=%" SAL_PRIuUINT32 "]: %s %s\n", t, s, s2 );
fflush( s_file ); fflush( s_file );
} }
} }
......
...@@ -751,7 +751,7 @@ sal_Bool XPlugin_Impl::provideNewStream(const OUString& mimetype, ...@@ -751,7 +751,7 @@ sal_Bool XPlugin_Impl::provideNewStream(const OUString& mimetype,
fprintf( stderr, fprintf( stderr,
"new stream \"%s\" of MIMEType \"%s\"\n" "new stream \"%s\" of MIMEType \"%s\"\n"
"for plugin \"%s\"\n" "for plugin \"%s\"\n"
"seekable = %s, length = %"SAL_PRIdINT32"\n", "seekable = %s, length = %" SAL_PRIdINT32 "\n",
aURL.getStr(), aMIME.getStr(), getPluginComm()->getLibName().getStr(), aURL.getStr(), aMIME.getStr(), getPluginComm()->getLibName().getStr(),
isfile ? "true" : "false", length ); isfile ? "true" : "false", length );
...@@ -862,7 +862,7 @@ void XPlugin_Impl::setPosSize( sal_Int32 nX_, sal_Int32 nY_, sal_Int32 nWidth_, ...@@ -862,7 +862,7 @@ void XPlugin_Impl::setPosSize( sal_Int32 nX_, sal_Int32 nY_, sal_Int32 nWidth_,
Guard< Mutex > aGuard( m_aMutex ); Guard< Mutex > aGuard( m_aMutex );
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
fprintf( stderr, "XPlugin_Impl::setPosSize( %"SAL_PRIdINT32", %"SAL_PRIdINT32", %"SAL_PRIdINT32", %"SAL_PRIdINT32", %d )\n", fprintf( stderr, "XPlugin_Impl::setPosSize( %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 ", %d )\n",
nX_, nY_, nWidth_, nHeight_, nFlags ); nX_, nY_, nWidth_, nHeight_, nFlags );
#endif #endif
......
...@@ -2470,7 +2470,7 @@ namespace osl_Socket ...@@ -2470,7 +2470,7 @@ namespace osl_Socket
// on Linux, the value of option is 1, on Solaris, it's 16, but it's not important the exact value, // on Linux, the value of option is 1, on Solaris, it's 16, but it's not important the exact value,
// just judge it is zero or not! // just judge it is zero or not!
sal_Bool bOK = ( 0 != *pGetBuffer ); sal_Bool bOK = ( 0 != *pGetBuffer );
t_print("#setOption_001: getOption is %"SAL_PRIdINT32" \n", *pGetBuffer); t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer);
// toggle check, set to 0 // toggle check, set to 0
*pbDontRouteSet = 0; *pbDontRouteSet = 0;
...@@ -2482,7 +2482,7 @@ namespace osl_Socket ...@@ -2482,7 +2482,7 @@ namespace osl_Socket
sal_Bool bOK2 = ( 0 == *pGetBuffer ); sal_Bool bOK2 = ( 0 == *pGetBuffer );
t_print("#setOption_001: getOption is %"SAL_PRIdINT32" \n", *pGetBuffer); t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer);
// LLA: sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) ); // LLA: sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
// LLA: *pbDontTouteSet = sal_True; // LLA: *pbDontTouteSet = sal_True;
......
...@@ -1107,7 +1107,7 @@ namespace osl_Socket ...@@ -1107,7 +1107,7 @@ namespace osl_Socket
// on Linux, the value of option is 1, on Solaris, it's 16, but it's not important the exact value, // on Linux, the value of option is 1, on Solaris, it's 16, but it's not important the exact value,
// just judge it is zero or not! // just judge it is zero or not!
sal_Bool bOK = ( 0 != *pGetBuffer ); sal_Bool bOK = ( 0 != *pGetBuffer );
t_print("#setOption_001: getOption is %"SAL_PRIdINT32" \n", *pGetBuffer); t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer);
// toggle check, set to 0 // toggle check, set to 0
*pbDontRouteSet = 0; *pbDontRouteSet = 0;
...@@ -1119,7 +1119,7 @@ namespace osl_Socket ...@@ -1119,7 +1119,7 @@ namespace osl_Socket
sal_Bool bOK2 = ( 0 == *pGetBuffer ); sal_Bool bOK2 = ( 0 == *pGetBuffer );
t_print("#setOption_001: getOption is %"SAL_PRIdINT32" \n", *pGetBuffer); t_print("#setOption_001: getOption is %" SAL_PRIdINT32 " \n", *pGetBuffer);
// LLA: sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) ); // LLA: sal_Bool * pbDontTouteSet = ( sal_Bool * )malloc( sizeof ( sal_Bool ) );
// LLA: *pbDontTouteSet = sal_True; // LLA: *pbDontTouteSet = sal_True;
......
...@@ -236,7 +236,7 @@ void PPTWriterBase::exportPPT( const std::vector< com::sun::star::beans::Propert ...@@ -236,7 +236,7 @@ void PPTWriterBase::exportPPT( const std::vector< com::sun::star::beans::Propert
for ( i = 0; i < mnPages; i++ ) for ( i = 0; i < mnPages; i++ )
{ {
DBG(printf( "call ImplCreateSlide( %"SAL_PRIuUINT32" )\n", i)); DBG(printf( "call ImplCreateSlide( %" SAL_PRIuUINT32 " )\n", i));
if ( !CreateSlide( i ) ) if ( !CreateSlide( i ) )
return; return;
} }
...@@ -454,7 +454,7 @@ sal_Int32 PPTWriterBase::GetLayoutOffset( const ::com::sun::star::uno::Reference ...@@ -454,7 +454,7 @@ sal_Int32 PPTWriterBase::GetLayoutOffset( const ::com::sun::star::uno::Reference
if ( GetPropertyValue( aAny, rXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "Layout" ) ) ), sal_True ) if ( GetPropertyValue( aAny, rXPropSet, String( RTL_CONSTASCII_USTRINGPARAM( "Layout" ) ) ), sal_True )
aAny >>= nLayout; aAny >>= nLayout;
DBG(printf("GetLayoutOffset %"SAL_PRIdINT32"\n", nLayout)); DBG(printf("GetLayoutOffset %" SAL_PRIdINT32 "\n", nLayout));
return nLayout; return nLayout;
} }
...@@ -485,7 +485,7 @@ PHLayout& PPTWriterBase::GetLayout( sal_Int32 nOffset ) const ...@@ -485,7 +485,7 @@ PHLayout& PPTWriterBase::GetLayout( sal_Int32 nOffset ) const
if( nOffset >= 0 && nOffset < EPP_LAYOUT_SIZE ) if( nOffset >= 0 && nOffset < EPP_LAYOUT_SIZE )
return pPHLayout[ nOffset ]; return pPHLayout[ nOffset ];
DBG(printf("asked %"SAL_PRIdINT32" for layout outside of 0,%d array scope\n", nOffset, EPP_LAYOUT_SIZE )); DBG(printf("asked %" SAL_PRIdINT32 " for layout outside of 0,%d array scope\n", nOffset, EPP_LAYOUT_SIZE ));
return pPHLayout[ 0 ]; return pPHLayout[ 0 ];
} }
......
...@@ -291,7 +291,7 @@ void MyWin::Resize() ...@@ -291,7 +291,7 @@ void MyWin::Resize()
void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEvent& dge ) throw(RuntimeException) void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEvent& dge ) throw(RuntimeException)
{ {
printf( "XDragGestureListener::dragGestureRecognized called ( Window: %p, %"SAL_PRIdINT32", %"SAL_PRIdINT32" ).\n", m_pWindow, dge.DragOriginX, dge.DragOriginY ); printf( "XDragGestureListener::dragGestureRecognized called ( Window: %p, %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 " ).\n", m_pWindow, dge.DragOriginX, dge.DragOriginY );
Reference< XDragSource > xDragSource( dge.DragSource, UNO_QUERY ); Reference< XDragSource > xDragSource( dge.DragSource, UNO_QUERY );
xDragSource->startDrag( dge, -1, 0, 0, new StringTransferable( OUString(RTL_CONSTASCII_USTRINGPARAM("TestString")) ), this ); xDragSource->startDrag( dge, -1, 0, 0, new StringTransferable( OUString(RTL_CONSTASCII_USTRINGPARAM("TestString")) ), this );
...@@ -302,7 +302,7 @@ void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEve ...@@ -302,7 +302,7 @@ void SAL_CALL MyDragAndDropListener::dragGestureRecognized( const DragGestureEve
void SAL_CALL MyDragAndDropListener::drop( const DropTargetDropEvent& dtde ) throw(RuntimeException) void SAL_CALL MyDragAndDropListener::drop( const DropTargetDropEvent& dtde ) throw(RuntimeException)
{ {
printf( "XDropTargetListener::drop called ( Window: %p, %"SAL_PRIdINT32", %"SAL_PRIdINT32" ).\n", m_pWindow, dtde.LocationX, dtde.LocationY ); printf( "XDropTargetListener::drop called ( Window: %p, %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 " ).\n", m_pWindow, dtde.LocationX, dtde.LocationY );
dtde.Context->dropComplete( sal_True ); dtde.Context->dropComplete( sal_True );
} }
...@@ -311,7 +311,7 @@ void SAL_CALL MyDragAndDropListener::drop( const DropTargetDropEvent& dtde ) thr ...@@ -311,7 +311,7 @@ void SAL_CALL MyDragAndDropListener::drop( const DropTargetDropEvent& dtde ) thr
void SAL_CALL MyDragAndDropListener::dragEnter( const DropTargetDragEnterEvent& dtdee ) throw(RuntimeException) void SAL_CALL MyDragAndDropListener::dragEnter( const DropTargetDragEnterEvent& dtdee ) throw(RuntimeException)
{ {
printf( "XDropTargetListener::dragEnter called ( Window: %p, %"SAL_PRIdINT32", %"SAL_PRIdINT32" ).\n", m_pWindow, dtdee.LocationX, dtdee.LocationY ); printf( "XDropTargetListener::dragEnter called ( Window: %p, %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 " ).\n", m_pWindow, dtdee.LocationX, dtdee.LocationY );
dtdee.Context->acceptDrag( dtdee.DropAction ); dtdee.Context->acceptDrag( dtdee.DropAction );
} }
...@@ -326,7 +326,7 @@ void SAL_CALL MyDragAndDropListener::dragExit( const DropTargetEvent& ) throw(Ru ...@@ -326,7 +326,7 @@ void SAL_CALL MyDragAndDropListener::dragExit( const DropTargetEvent& ) throw(Ru
void SAL_CALL MyDragAndDropListener::dragOver( const DropTargetDragEvent& dtde ) throw(RuntimeException) void SAL_CALL MyDragAndDropListener::dragOver( const DropTargetDragEvent& dtde ) throw(RuntimeException)
{ {
printf( "XDropTargetListener::dragOver called ( Window: %p, %"SAL_PRIdINT32", %"SAL_PRIdINT32" ).\n", m_pWindow, dtde.LocationX, dtde.LocationY ); printf( "XDropTargetListener::dragOver called ( Window: %p, %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 " ).\n", m_pWindow, dtde.LocationX, dtde.LocationY );
dtde.Context->acceptDrag( dtde.DropAction ); dtde.Context->acceptDrag( dtde.DropAction );
} }
...@@ -334,7 +334,7 @@ void SAL_CALL MyDragAndDropListener::dragOver( const DropTargetDragEvent& dtde ) ...@@ -334,7 +334,7 @@ void SAL_CALL MyDragAndDropListener::dragOver( const DropTargetDragEvent& dtde )
void SAL_CALL MyDragAndDropListener::dropActionChanged( const DropTargetDragEvent& dtde ) throw(RuntimeException) void SAL_CALL MyDragAndDropListener::dropActionChanged( const DropTargetDragEvent& dtde ) throw(RuntimeException)
{ {
printf( "XDropTargetListener::dropActionChanged called ( Window: %p, %"SAL_PRIdINT32", %"SAL_PRIdINT32" ).\n", m_pWindow, dtde.LocationX, dtde.LocationY ); printf( "XDropTargetListener::dropActionChanged called ( Window: %p, %" SAL_PRIdINT32 ", %" SAL_PRIdINT32 " ).\n", m_pWindow, dtde.LocationX, dtde.LocationY );
dtde.Context->acceptDrag( dtde.DropAction ); dtde.Context->acceptDrag( dtde.DropAction );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment