[Libreoffice-commits] core.git: svl/source
Roman Kuznetsov (via logerrit)
logerrit at kemper.freedesktop.org
Tue Sep 28 08:43:49 UTC 2021
svl/source/misc/gridprinter.cxx | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
New commits:
commit aeb056fb2feab4dfc5a5c4928b54fa21756d824b
Author: Roman Kuznetsov <antilibreoffice at gmail.com>
AuthorDate: Mon Sep 27 18:29:59 2021 +0200
Commit: Roman Kuznetsov <antilibreoffice at gmail.com>
CommitDate: Tue Sep 28 10:43:14 2021 +0200
drop 'using namespace std' here
Change-Id: Ifbbd6e985fb66893dc872522ed5418453ca8e2d4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122651
Tested-by: Jenkins
Reviewed-by: Roman Kuznetsov <antilibreoffice at gmail.com>
diff --git a/svl/source/misc/gridprinter.cxx b/svl/source/misc/gridprinter.cxx
index ae910e4f0cf7..070ed08b3eb9 100644
--- a/svl/source/misc/gridprinter.cxx
+++ b/svl/source/misc/gridprinter.cxx
@@ -17,8 +17,6 @@
#include <iostream>
-using namespace std;
-
namespace svl {
// String ID
@@ -79,10 +77,10 @@ void GridPrinter::print( const char* pHeader ) const
return;
if (pHeader)
- cout << pHeader << endl;
+ std::cout << pHeader << std::endl;
MatrixImplType::size_pair_type ns = mpImpl->maMatrix.size();
- vector<sal_Int32> aColWidths(ns.column, 0);
+ std::vector<sal_Int32> aColWidths(ns.column, 0);
// Calculate column widths first.
for (size_t row = 0; row < ns.row; ++row)
@@ -109,10 +107,10 @@ void GridPrinter::print( const char* pHeader ) const
OUString aSep = aBuf.makeStringAndClear();
// Now print to stdout.
- cout << aSep << endl;
+ std::cout << aSep << std::endl;
for (size_t row = 0; row < ns.row; ++row)
{
- cout << "| ";
+ std::cout << "| ";
for (size_t col = 0; col < ns.column; ++col)
{
OUString aStr = mpImpl->maMatrix.get_string(row, col);
@@ -120,10 +118,10 @@ void GridPrinter::print( const char* pHeader ) const
aBuf.append(aStr);
for (size_t i = 0; i < nPadding; ++i)
aBuf.append(u' ');
- cout << aBuf.makeStringAndClear() << " | ";
+ std::cout << aBuf.makeStringAndClear() << " | ";
}
- cout << endl;
- cout << aSep << endl;
+ std::cout << std::endl;
+ std::cout << aSep << std::endl;
}
}
More information about the Libreoffice-commits
mailing list