summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorRoman Kuznetsov <antilibreoffice@gmail.com>2021-09-27 18:29:59 +0200
committerRoman Kuznetsov <antilibreoffice@gmail.com>2021-09-28 10:43:14 +0200
commitaeb056fb2feab4dfc5a5c4928b54fa21756d824b (patch)
tree1cb31edf7691ac893dbb3e5c8b647a6400b30af8 /svl
parent05f863844d9a5613250e8d787e32752b270ec4d3 (diff)
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@gmail.com>
Diffstat (limited to 'svl')
-rw-r--r--svl/source/misc/gridprinter.cxx16
1 files changed, 7 insertions, 9 deletions
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;
}
}