Kaydet (Commit) 6bc62f4f authored tarafından Ricardo Montania's avatar Ricardo Montania Kaydeden (comit) Caolán McNamara

::rtl::OUString -> OUString in basegfx

Change-Id: I2e0189135d5f30b20e625b849cedbef2eb639ed9
Reviewed-on: https://gerrit.libreoffice.org/929Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9cb8bef6
......@@ -41,9 +41,9 @@ namespace basegfx
{
namespace
{
void lcl_skipSpaces(sal_Int32& io_rPos,
const ::rtl::OUString& rStr,
const sal_Int32 nLen)
void lcl_skipSpaces(sal_Int32& io_rPos,
const OUString& rStr,
const sal_Int32 nLen)
{
while( io_rPos < nLen &&
sal_Unicode(' ') == rStr[io_rPos] )
......@@ -52,9 +52,9 @@ namespace basegfx
}
}
void lcl_skipSpacesAndCommas(sal_Int32& io_rPos,
const ::rtl::OUString& rStr,
const sal_Int32 nLen)
void lcl_skipSpacesAndCommas(sal_Int32& io_rPos,
const OUString& rStr,
const sal_Int32 nLen)
{
while(io_rPos < nLen
&& (sal_Unicode(' ') == rStr[io_rPos] || sal_Unicode(',') == rStr[io_rPos]))
......@@ -73,18 +73,18 @@ namespace basegfx
return bPredicate;
}
inline bool lcl_isOnNumberChar(const ::rtl::OUString& rStr, const sal_Int32 nPos, bool bSignAllowed = true)
inline bool lcl_isOnNumberChar(const OUString& rStr, const sal_Int32 nPos, bool bSignAllowed = true)
{
return lcl_isOnNumberChar(rStr[nPos],
bSignAllowed);
}
bool lcl_getDoubleChar(double& o_fRetval,
sal_Int32& io_rPos,
const ::rtl::OUString& rStr)
bool lcl_getDoubleChar(double& o_fRetval,
sal_Int32& io_rPos,
const OUString& rStr)
{
sal_Unicode aChar( rStr[io_rPos] );
::rtl::OUStringBuffer sNumberString;
OUStringBuffer sNumberString;
bool separator_seen=false;
if(sal_Unicode('+') == aChar || sal_Unicode('-') == aChar)
......@@ -133,10 +133,10 @@ namespace basegfx
return false;
}
bool lcl_importDoubleAndSpaces( double& o_fRetval,
sal_Int32& io_rPos,
const ::rtl::OUString& rStr,
const sal_Int32 nLen )
bool lcl_importDoubleAndSpaces( double& o_fRetval,
sal_Int32& io_rPos,
const OUString& rStr,
const sal_Int32 nLen )
{
if( !lcl_getDoubleChar(o_fRetval, io_rPos, rStr) )
return false;
......@@ -146,10 +146,10 @@ namespace basegfx
return true;
}
bool lcl_importFlagAndSpaces(sal_Int32& o_nRetval,
sal_Int32& io_rPos,
const ::rtl::OUString& rStr,
const sal_Int32 nLen)
bool lcl_importFlagAndSpaces(sal_Int32& o_nRetval,
sal_Int32& io_rPos,
const OUString& rStr,
const sal_Int32 nLen)
{
sal_Unicode aChar( rStr[io_rPos] );
......@@ -171,14 +171,14 @@ namespace basegfx
return true;
}
void lcl_putNumberChar( ::rtl::OUStringBuffer& rStr,
double fValue )
void lcl_putNumberChar( OUStringBuffer& rStr,
double fValue )
{
rStr.append( fValue );
}
void lcl_putNumberCharWithSpace( ::rtl::OUStringBuffer& rStr,
double fValue,
void lcl_putNumberCharWithSpace( OUStringBuffer& rStr,
double fValue,
double fOldValue,
bool bUseRelativeCoordinates )
{
......@@ -206,7 +206,7 @@ namespace basegfx
}
}
bool importFromSvgD(B2DPolyPolygon& o_rPolyPolygon, const ::rtl::OUString& rSvgDStatement, bool bWrongPositionAfterZ)
bool importFromSvgD(B2DPolyPolygon& o_rPolyPolygon, const OUString& rSvgDStatement, bool bWrongPositionAfterZ)
{
o_rPolyPolygon.clear();
const sal_Int32 nLen(rSvgDStatement.getLength());
......@@ -789,7 +789,7 @@ namespace basegfx
}
bool importFromSvgPoints( B2DPolygon& o_rPoly,
const ::rtl::OUString& rSvgPointsAttribute )
const OUString& rSvgPointsAttribute )
{
o_rPoly.clear();
const sal_Int32 nLen(rSvgPointsAttribute.getLength());
......@@ -814,13 +814,13 @@ namespace basegfx
return true;
}
::rtl::OUString exportToSvgD(
OUString exportToSvgD(
const B2DPolyPolygon& rPolyPolygon,
bool bUseRelativeCoordinates,
bool bDetectQuadraticBeziers)
{
const sal_uInt32 nCount(rPolyPolygon.count());
::rtl::OUStringBuffer aResult;
OUStringBuffer aResult;
B2DPoint aCurrentSVGPosition(0.0, 0.0); // SVG assumes (0,0) as the initial current point
for(sal_uInt32 i(0); i < nCount; i++)
......
......@@ -329,7 +329,7 @@ namespace basegfx
if( !xLinePoly.is() )
{
throw lang::IllegalArgumentException(
::rtl::OUString(
OUString(
"basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(): Invalid input"
"poly-polygon, cannot retrieve vertex data"),
uno::Reference< uno::XInterface >(),
......
......@@ -113,10 +113,8 @@ namespace unotools
// found - contract violation.
if( !xLinePoly.is() )
throw lang::IllegalArgumentException(
::rtl::OUString(
RTL_CONSTASCII_USTRINGPARAM(
"UnoPolyPolygon::addPolyPolygon(): Invalid input "
"poly-polygon, cannot retrieve vertex data")),
"UnoPolyPolygon::addPolyPolygon(): Invalid input "
"poly-polygon, cannot retrieve vertex data",
static_cast<cppu::OWeakObject*>(this), 1);
aSrcPoly = unotools::polyPolygonFromPoint2DSequenceSequence(
......@@ -447,20 +445,20 @@ namespace unotools
#define IMPLEMENTATION_NAME "gfx::internal::UnoPolyPolygon"
#define SERVICE_NAME "com.sun.star.rendering.PolyPolygon2D"
::rtl::OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException )
OUString SAL_CALL UnoPolyPolygon::getImplementationName() throw( uno::RuntimeException )
{
return ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( IMPLEMENTATION_NAME ) );
return OUString( IMPLEMENTATION_NAME );
}
sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const ::rtl::OUString& ServiceName ) throw( uno::RuntimeException )
sal_Bool SAL_CALL UnoPolyPolygon::supportsService( const OUString& ServiceName ) throw( uno::RuntimeException )
{
return ServiceName == SERVICE_NAME;
}
uno::Sequence< ::rtl::OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException )
uno::Sequence< OUString > SAL_CALL UnoPolyPolygon::getSupportedServiceNames() throw( uno::RuntimeException )
{
uno::Sequence< ::rtl::OUString > aRet(1);
aRet[0] = ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM ( SERVICE_NAME ) );
uno::Sequence< OUString > aRet(1);
aRet[0] = SERVICE_NAME ;
return aRet;
}
......
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