Kaydet (Commit) ec1c09b9 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: some simple warnings

üst cb14e2f4
...@@ -76,8 +76,9 @@ sal_Char* cpystr( sal_Char* dst, const sal_Char* src ) ...@@ -76,8 +76,9 @@ sal_Char* cpystr( sal_Char* dst, const sal_Char* src )
const sal_Char* psrc = src; const sal_Char* psrc = src;
sal_Char* pdst = dst; sal_Char* pdst = dst;
while( (*pdst++ = *psrc++) ); while( (*pdst++ = *psrc++) ) {}
return ( dst );
return dst;
} }
sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt ) sal_Char* cpynstr( sal_Char* dst, const sal_Char* src, sal_uInt32 cnt )
......
...@@ -637,7 +637,8 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, ...@@ -637,7 +637,8 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *,
aLogonPasswd = aStringForward.copy( nFirstSpacePoint +1, aStringForward.getLength( ) - 1 ); aLogonPasswd = aStringForward.copy( nFirstSpacePoint +1, aStringForward.getLength( ) - 1 );
t_print("#Forwarded password: "); t_print("#Forwarded password: ");
for ( int i = nFirstSpacePoint +1; i <= aStringForward.getLength( ) - 1; i++, t_print("*") ); for (int i = nFirstSpacePoint+1; i <= aStringForward.getLength()-1; ++i)
t_print("*");
t_print("\n" ); t_print("\n" );
} }
else else
...@@ -649,7 +650,8 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *, ...@@ -649,7 +650,8 @@ void MyTestPlugInImpl::initialize( CPPUNIT_NS::TestFactoryRegistry *,
aLogonPasswd = aStringForward.copy( nFirstSpacePoint +1, nLastSpacePoint ); aLogonPasswd = aStringForward.copy( nFirstSpacePoint +1, nLastSpacePoint );
t_print("#Forwarded password: "); t_print("#Forwarded password: ");
for ( int i = nFirstSpacePoint +1; i <= nLastSpacePoint; i++, t_print("*") ); for (int i = nFirstSpacePoint+1; i <= nLastSpacePoint; ++i)
t_print("*");
t_print("\n" ); t_print("\n" );
aFileServer = aStringForward.copy( nLastSpacePoint +1, aStringForward.getLength( ) - 1 ); aFileServer = aStringForward.copy( nLastSpacePoint +1, aStringForward.getLength( ) - 1 );
......
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