diff options
author | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-27 09:10:56 +0100 |
---|---|---|
committer | Gert Faller <gertfaller@aliceadsl.fr> | 2010-11-27 09:10:56 +0100 |
commit | 7ccc9aaef5c992f7baa7b0c547e3f3a2c06056fe (patch) | |
tree | 3b6b1e202e7ace21d826587664284d0ec99406ad /odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx | |
parent | 6fdcddfa77a32f324e5b67d3bf71d54cf88f7a54 (diff) |
RTL_CONSTASCII_USTRINGPARAM in sdk 1
Diffstat (limited to 'odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx')
-rw-r--r-- | odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx index 6e3521d8b878..83984ec95e2c 100644 --- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx +++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SDriver.cxx @@ -79,7 +79,7 @@ void SkeletonDriver::disposing() //------------------------------------------------------------------------------ rtl::OUString SkeletonDriver::getImplementationName_Static( ) throw(RuntimeException) { - return rtl::OUString::createFromAscii("com.sun.star.comp.sdbc.SkeletonDriver"); + return rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.comp.sdbc.SkeletonDriver")); // this name is referenced in the configuration and in the skeleton.xml // Please take care when changing it. } @@ -89,7 +89,7 @@ Sequence< ::rtl::OUString > SkeletonDriver::getSupportedServiceNames_Static( ) // which service is supported // for more information @see com.sun.star.sdbc.Driver Sequence< ::rtl::OUString > aSNS( 1 ); - aSNS[0] = ::rtl::OUString::createFromAscii("com.sun.star.sdbc.Driver"); + aSNS[0] = ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.Driver")); return aSNS; } @@ -134,7 +134,7 @@ sal_Bool SAL_CALL SkeletonDriver::acceptsURL( const ::rtl::OUString& url ) { // here we have to look if we support this url format // change the URL format to your needs, but please aware that the first on who accepts the URl wins. - return (!url.compareTo(::rtl::OUString::createFromAscii("sdbc:skeleton:"),14)); + return (!url.compareTo(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("sdbc:skeleton:")),14)); } // -------------------------------------------------------------------------------- Sequence< DriverPropertyInfo > SAL_CALL SkeletonDriver::getPropertyInfo( const ::rtl::OUString& url, const Sequence< PropertyValue >& info ) throw(SQLException, RuntimeException) |