summaryrefslogtreecommitdiff
path: root/l10ntools/source/xrmmerge.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2021-10-04 21:21:31 +0200
committerJulien Nabet <serval2412@yahoo.fr>2021-10-04 22:30:42 +0200
commit2f54c40fc28294676a129cfa86eed39f974a9e24 (patch)
tree2c9584edf3f1f5a0c8f6b3a65d0f47e92bce92dd /l10ntools/source/xrmmerge.cxx
parentbf82274d327146ec0aa2b4f8a0e6d1bf24366cb3 (diff)
drop 'using namespace std' in l*
Change-Id: I88909cf813f39a52c70d3cbcb19ff326d9bb42d7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123069 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'l10ntools/source/xrmmerge.cxx')
-rw-r--r--l10ntools/source/xrmmerge.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx
index 29efe12099b9..d1dc5bb4dcd2 100644
--- a/l10ntools/source/xrmmerge.cxx
+++ b/l10ntools/source/xrmmerge.cxx
@@ -35,8 +35,6 @@
#include <vector>
#include <memory>
-using namespace std;
-
// set of global variables
static bool bMergeMode;
static bool bDisplayName;
@@ -303,11 +301,11 @@ void XRMResExport::WorkOnDesc(
{
const OString sDescFileName{ sInputFileName.replaceAll("description.xml", OString())
+ GetAttribute( rOpenTag, "xlink:href" ) };
- ifstream file (sDescFileName.getStr(), ios::in|ios::binary|ios::ate);
+ std::ifstream file (sDescFileName.getStr(), std::ios::in|std::ios::binary|std::ios::ate);
if (file.is_open()) {
int size = static_cast<int>(file.tellg());
std::unique_ptr<char[]> memblock(new char [size+1]);
- file.seekg (0, ios::beg);
+ file.seekg (0, std::ios::beg);
file.read (memblock.get(), size);
file.close();
memblock[size] = '\0';
@@ -421,7 +419,7 @@ void XRMResMerge::WorkOnDesc(
}
OString sOutputDescFile(
sOutputFile.subView(0, i + 1) + sLocDescFilename);
- ofstream file(sOutputDescFile.getStr());
+ std::ofstream file(sOutputDescFile.getStr());
if (file.is_open()) {
file << sText;
file.close();