summaryrefslogtreecommitdiff
path: root/connectivity/workben/little
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 19:12:19 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-06-02 19:12:19 -0500
commitbe8c8f17897633016a25c1efc3352921c2d7fcbf (patch)
tree88065de2ad655649e831fffc207f1f0795da7b1c /connectivity/workben/little
parent2fbb371fa11c7c54749136a8e2cd8279b8123d0b (diff)
targeted string re-work
Change-Id: I511ceb2929b9bd316455c6463a3495e2748befdd
Diffstat (limited to 'connectivity/workben/little')
-rw-r--r--connectivity/workben/little/main.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/connectivity/workben/little/main.cxx b/connectivity/workben/little/main.cxx
index b7092a570161..c5ac706bac16 100644
--- a/connectivity/workben/little/main.cxx
+++ b/connectivity/workben/little/main.cxx
@@ -64,28 +64,28 @@ void _cdecl main( int argc, char * argv[] )
try{
Reference< ::com::sun::star::lang::XMultiServiceFactory > xFac =
- createRegistryServiceFactory(OUString(RTL_CONSTASCII_USTRINGPARAM("g:\\office50\\program\\applicat.rdb")),OUString());
+ createRegistryServiceFactory(OUString("g:\\office50\\program\\applicat.rdb"),OUString());
if(!xFac.is())
return;
- m_xDriver = Reference<XDriver>(xFac->createInstance(OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.sdbc.driver.dbase.Driver"))),UNO_QUERY);
+ m_xDriver = Reference<XDriver>(xFac->createInstance(OUString("com.sun.star.sdbc.driver.dbase.Driver")),UNO_QUERY);
if(m_xDriver.is())
{
Sequence<PropertyValue> aValue;
- // aValue.getArray()[0] = PropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("user")),0,makeAny(OUString(RTL_CONSTASCII_USTRINGPARAM("TEST1"))),PropertyState_DIRECT_VALUE);
- // aValue.getArray()[1] = PropertyValue( OUString(RTL_CONSTASCII_USTRINGPARAM("password")),0,makeAny(OUString(RTL_CONSTASCII_USTRINGPARAM("TEST1"))),PropertyState_DIRECT_VALUE);
+ // aValue.getArray()[0] = PropertyValue( OUString("user"),0,makeAny(OUString("TEST1")),PropertyState_DIRECT_VALUE);
+ // aValue.getArray()[1] = PropertyValue( OUString("password"),0,makeAny(OUString("TEST1")),PropertyState_DIRECT_VALUE);
//
- m_xConnection = m_xDriver->connect(OUString(RTL_CONSTASCII_USTRINGPARAM("sdbc:dbase:g:\\")),aValue);
+ m_xConnection = m_xDriver->connect(OUString("sdbc:dbase:g:\\"),aValue);
if(m_xConnection.is())
{
Reference<XStatement> xStmt = m_xConnection->createStatement();
if(xStmt.is())
{
- Reference<XResultSet> xRes = xStmt->executeQuery(OUString(RTL_CONSTASCII_USTRINGPARAM("SELECT * FROM Tele")));
+ Reference<XResultSet> xRes = xStmt->executeQuery(OUString("SELECT * FROM Tele"));
if(xRes.is())
{
- ::rtl::OUString aPat( RTL_CONSTASCII_USTRINGPARAM( "%s\t" ));
+ ::rtl::OUString aPat( "%s\t" );
Reference<XRow> xRow(xRes,UNO_QUERY);
Reference<XResultSetMetaData> xMeta = Reference<XResultSetMetaDataSupplier>(xRes,UNO_QUERY)->getMetaData();
for(sal_Int32 i=1;i<xMeta->getColumnCount();++i)