diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-10-05 20:49:26 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-10-05 23:09:56 +0200 |
commit | 10ad9560fba562f494fa44fc8a7bd2388d9e8c5c (patch) | |
tree | 734c31a455749a7c30556a05b62bcf21cf9ad7df /odk | |
parent | 1f90b8086fcad7ac033e76a96bf102db7c15e44f (diff) |
drop 'using namespace std' in o* r* x*
Change-Id: I15d56d133cf464a3cb6483be785b1259c7f35b43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123120
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/cpp/DocumentLoader/DocumentLoader.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx index 057a9e8152b0..6925fef788b1 100644 --- a/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx +++ b/odk/examples/cpp/DocumentLoader/DocumentLoader.cxx @@ -49,7 +49,6 @@ #include <com/sun/star/lang/XMultiComponentFactory.hpp> #include <com/sun/star/registry/XSimpleRegistry.hpp> -using namespace std; using namespace com::sun::star::uno; using namespace com::sun::star::lang; using namespace com::sun::star::beans; @@ -67,14 +66,14 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) if (nCount < 1) { - cout << "using: DocumentLoader -env:URE_MORE_TYPES=<office_types_rdb_url> <file_url> " + std::cout << "using: DocumentLoader -env:URE_MORE_TYPES=<office_types_rdb_url> <file_url> " "[<uno_connection_url>]" - << endl - << endl + << std::endl + << std::endl << "example: DocumentLoader -env:URE_MORE_TYPES=\"file:///.../program/offapi.rdb\" " "\"file:///e:/temp/test.odt\" " "\"uno:socket,host=localhost,port=2083;urp;StarOffice.ServiceManager\"" - << endl; + << std::endl; exit(1); } if (nCount == 2) @@ -109,8 +108,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) } catch ( Exception& e ) { - cout << "Error: cannot establish a connection using " - << sConnectionString << endl << e.Message << endl; + std::cout << "Error: cannot establish a connection using " + << sConnectionString << std::endl << e.Message << std::endl; exit(1); } |