summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorRoman Kuznetsov <antilibreoffice@gmail.com>2021-10-01 14:26:07 +0200
committerRoman Kuznetsov <antilibreoffice@gmail.com>2021-10-03 12:05:01 +0200
commite7a7cfa029f8a6979179c5cf394d7eea80982ca8 (patch)
treefcc4d602fdb191d0e0515a402739426e8caf8e56 /odk
parent9946a2fef07840ff4ca842928afbeeb52ece3603 (diff)
drop 'using namespace std' here
Change-Id: I6ebbd0ece563f0d877b03389fa9a96311cd207cc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122867 Tested-by: Jenkins Reviewed-by: Roman Kuznetsov <antilibreoffice@gmail.com>
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/cpp/Draw/Draw.cxx15
1 files changed, 7 insertions, 8 deletions
diff --git a/odk/examples/cpp/Draw/Draw.cxx b/odk/examples/cpp/Draw/Draw.cxx
index 0e0f7ab41603..843bdd553346 100644
--- a/odk/examples/cpp/Draw/Draw.cxx
+++ b/odk/examples/cpp/Draw/Draw.cxx
@@ -37,7 +37,6 @@
#include <com/sun/star/container/XIndexAccess.hpp>
#include <com/sun/star/util/Color.hpp>
-using namespace std;
using namespace cppu;
using namespace rtl;
using namespace css::uno;
@@ -67,7 +66,7 @@ int main()
}
catch (Exception& e)
{
- cout << "Error: cannot do bootstraping." << endl << e.Message << endl;
+ std::cout << "Error: cannot do bootstraping." << std::endl << e.Message << std::endl;
exit(1);
}
@@ -86,7 +85,7 @@ int main()
}
catch (Exception& e)
{
- cout << "Error: Document creation was not possible" << endl;
+ std::cout << "Error: Document creation was not possible" << std::endl;
exit(1);
}
@@ -119,7 +118,7 @@ Reference<XComponent> openDraw(Reference<XComponentContext> xContext)
}
catch (Exception e)
{
- cout << "Error opening draw." << endl << e.Message << endl;
+ std::cout << "Error opening draw." << std::endl << e.Message << std::endl;
exit(1);
}
@@ -152,7 +151,7 @@ Reference<XShape> createShape(Reference<XComponent> xDocComp, int height, int wi
}
catch (Exception e)
{
- cout << "Could not create instance." << endl << e.Message << endl;
+ std::cout << "Could not create instance." << std::endl << e.Message << std::endl;
exit(1);
}
@@ -164,7 +163,7 @@ Reference<XShape> createShape(Reference<XComponent> xDocComp, int height, int wi
}
catch (Exception e)
{
- cout << "Can not change the shape colors." << endl << e.Message << endl;
+ std::cout << "Can not change the shape colors." << std::endl << e.Message << std::endl;
exit(1);
}
@@ -205,7 +204,7 @@ Reference<XShapeGroup> createSequence(Reference<XComponent> xDocComp, Reference<
catch (Exception e)
{
// Some exception occurs.FAILED
- cout << "Could not get Shape." << endl << e.Message << endl;
+ std::cout << "Could not get Shape." << std::endl << e.Message << std::endl;
exit(1);
}
@@ -220,7 +219,7 @@ Reference<XShapeGroup> createSequence(Reference<XComponent> xDocComp, Reference<
}
catch (Exception e)
{
- cout << "Can not change shape colors." << endl << e.Message << endl;
+ std::cout << "Can not change shape colors." << std::endl << e.Message << std::endl;
exit(1);
}
xShapes->add(xShape);