Kaydet (Commit) 318be4e5 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)

Change-Id: I743d8ea777a5dda2c9a62705c3623d13a363f2b7
üst 61b0a3d6
......@@ -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( );
......
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