[Libreoffice-commits] core.git: odk/examples
Roman Kuznetsov (via logerrit)
logerrit at kemper.freedesktop.org
Sun Oct 3 10:05:34 UTC 2021
odk/examples/cpp/Draw/Draw.cxx | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
New commits:
commit e7a7cfa029f8a6979179c5cf394d7eea80982ca8
Author: Roman Kuznetsov <antilibreoffice at gmail.com>
AuthorDate: Fri Oct 1 14:26:07 2021 +0200
Commit: Roman Kuznetsov <antilibreoffice at gmail.com>
CommitDate: Sun Oct 3 12:05:01 2021 +0200
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 at gmail.com>
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);
More information about the Libreoffice-commits
mailing list