Skip to content

Commit 0f867ad

Browse files
committedDec 18, 2014
dtrans: Use appropriate OUString functions on string constants
Change-Id: I47f5431483f3dfce3bb4d1e956cbe3ab226a1cfc
1 parent 1322c22 commit 0f867ad

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
 

‎dtrans/source/cnttype/mcnttype.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ OUString SAL_CALL CMimeContentType::quotedPValue( )
290290
{
291291
break;
292292
}
293-
else if ( isInRange( m_nxtSym, OUString(TOKEN) + OUString(TSPECIALS) + OUString(SPACE) ) )
293+
else if ( isInRange( m_nxtSym, OUStringLiteral(TOKEN) + TSPECIALS + SPACE ) )
294294
{
295295
pvalue += m_nxtSym;
296296
if ( m_nxtSym == "\"" )
@@ -329,7 +329,7 @@ void SAL_CALL CMimeContentType::comment( void )
329329
{
330330
while ( !m_nxtSym.isEmpty( ) )
331331
{
332-
if ( isInRange( m_nxtSym, OUString(TOKEN) + OUString(SPACE) ) )
332+
if ( isInRange( m_nxtSym, OUStringLiteral(TOKEN) + SPACE ) )
333333
getSym( );
334334
else if ( m_nxtSym == ")" )
335335
break;

‎dtrans/source/cnttype/mctfentry.cxx

+1-4
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525

2626
// some defines
2727

28-
// the service names
29-
#define MIMECONTENTTYPEFACTORY_SERVICE_NAME "com.sun.star.datatransfer.MimeContentTypeFactory"
30-
3128
// the implementation names
3229
#define MIMECONTENTTYPEFACTORY_IMPL_NAME "com.sun.star.datatransfer.MimeCntTypeFactory"
3330

@@ -67,7 +64,7 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL mcnttype_component_getFactory( const sal_Cha
6764
if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, MIMECONTENTTYPEFACTORY_IMPL_NAME ) ) )
6865
{
6966
Sequence< OUString > aSNS( 1 );
70-
aSNS.getArray( )[0] = OUString( MIMECONTENTTYPEFACTORY_SERVICE_NAME );
67+
aSNS.getArray( )[0] = "com.sun.star.datatransfer.MimeContentTypeFactory";
7168

7269
Reference< XSingleServiceFactory > xFactory ( createSingleFactory(
7370
reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),

0 commit comments

Comments
 (0)
Please sign in to comment.