summaryrefslogtreecommitdiff
path: root/dtrans
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-11-06 09:35:33 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-11-06 09:35:33 +0100
commit318be4e53543aab8794922127119e5f0f5b21760 (patch)
tree475f8fd2e598473b1d41295ae297de123e233bd5 /dtrans
parent61b0a3d68578d182bb03a261a5b576baa82cd431 (diff)
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I743d8ea777a5dda2c9a62705c3623d13a363f2b7
Diffstat (limited to 'dtrans')
-rw-r--r--dtrans/source/cnttype/mcnttype.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/dtrans/source/cnttype/mcnttype.cxx b/dtrans/source/cnttype/mcnttype.cxx
index e9c2915dbe20..cf314eb666b0 100644
--- a/dtrans/source/cnttype/mcnttype.cxx
+++ b/dtrans/source/cnttype/mcnttype.cxx
@@ -142,7 +142,7 @@ void SAL_CALL CMimeContentType::type()
{
if ( isInRange( m_nxtSym, sToken ) )
m_MediaType += m_nxtSym;
- else if ( isInRange( m_nxtSym, OUString("/ ") ) )
+ else if ( isInRange( m_nxtSym, "/ " ) )
break;
else
throw IllegalArgumentException( );
@@ -151,7 +151,7 @@ void SAL_CALL CMimeContentType::type()
// check FOLLOW( type )
skipSpaces( );
- acceptSym( OUString("/") );
+ acceptSym( "/" );
subtype( );
}
@@ -170,7 +170,7 @@ void SAL_CALL CMimeContentType::subtype()
{
if ( isInRange( m_nxtSym, sToken ) )
m_MediaSubtype += m_nxtSym;
- else if ( isInRange( m_nxtSym, OUString("; ") ) )
+ else if ( isInRange( m_nxtSym, "; " ) )
break;
else
throw IllegalArgumentException( );
@@ -191,7 +191,7 @@ void SAL_CALL CMimeContentType::trailer()
{
getSym( );
comment( );
- acceptSym( OUString(")") );
+ acceptSym( ")" );
}
else if ( m_nxtSym == ";" )
{
@@ -205,7 +205,7 @@ void SAL_CALL CMimeContentType::trailer()
OUString pname = pName( );
skipSpaces();
- acceptSym( OUString("=") );
+ acceptSym( "=" );
// get the parameter value
skipSpaces( );
@@ -232,7 +232,7 @@ OUString SAL_CALL CMimeContentType::pName( )
{
if ( isInRange( m_nxtSym, sToken ) )
pname += m_nxtSym;
- else if ( isInRange( m_nxtSym, OUString("= ") ) )
+ else if ( isInRange( m_nxtSym, "= " ) )
break;
else
throw IllegalArgumentException( );
@@ -315,7 +315,7 @@ OUString SAL_CALL CMimeContentType::nonquotedPValue( )
{
if ( isInRange( m_nxtSym, sToken ) )
pvalue += m_nxtSym;
- else if ( isInRange( m_nxtSym, OUString("; ") ) )
+ else if ( isInRange( m_nxtSym, "; " ) )
break;
else
throw IllegalArgumentException( );