diff options
Diffstat (limited to 'configmgr/workben/apitest/cfgapi_timetest.cxx')
-rw-r--r-- | configmgr/workben/apitest/cfgapi_timetest.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/configmgr/workben/apitest/cfgapi_timetest.cxx b/configmgr/workben/apitest/cfgapi_timetest.cxx index 66d224ee50..ce8f5a8300 100644 --- a/configmgr/workben/apitest/cfgapi_timetest.cxx +++ b/configmgr/workben/apitest/cfgapi_timetest.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cfgapi_timetest.cxx,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: jb $ $Date: 2001-09-28 13:32:56 $ + * last change: $Author: hr $ $Date: 2003-03-19 16:20:18 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -461,7 +461,7 @@ int _cdecl main( int argc, char * argv[] ) ); if (!xORB.is()) { - cout.flush(); + ::flush(cout); cerr << "Could not create the service factory !\n\n"; return 1; } @@ -527,7 +527,7 @@ int _cdecl main( int argc, char * argv[] ) UNO_QUERY); if (!xCfgProvider.is()) { - cout.flush(); + ::flush(cout); cerr << "Could not create the configuration provider !\n\n"; return 3; } @@ -566,7 +566,7 @@ int _cdecl main( int argc, char * argv[] ) } catch (Exception& e) { - cout.flush(); + ::flush(cout); cerr << "Caught exception: " << e.Message << endl; return 1; } @@ -606,7 +606,7 @@ void ask_for_a_node_and_test_it(const Reference< XMultiServiceFactory > &xCfgPro } catch (Exception& e) { - cout.flush(); + ::flush(cout); cerr << "Caught exception: " << e.Message << endl; } } @@ -774,9 +774,9 @@ bool ask(Reference< XInterface >& xIface, const Reference< XMultiServiceFactory } else if ('0' <= buf[0] && buf[0] <= '9' && xAccess.is()) { - int n = atoi(buf); + unsigned int n = unsigned(atoi(buf)); Sequence<OUString> aNames = xAccess->getElementNames(); - if (0 <= n && n < aNames.getLength()) + if (n < aNames.getLength()) aName = aNames[n]; } |