diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 20:43:00 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-02-13 20:56:39 +0100 |
commit | c7e65b12ff3e7a795a583bf655784126e886289f (patch) | |
tree | 7d6a7eac552205474d6017b92280e82e72b11ac3 /l10ntools/source/xrmmerge.cxx | |
parent | 92bdbbed7ff1c75c7798cf4df3636e4e132aee8a (diff) |
Reduce scope xrmmerge.cxx
Change-Id: I70018ce13dc5dc45d59fdb339e9d0a14348a4195
Diffstat (limited to 'l10ntools/source/xrmmerge.cxx')
-rw-r--r-- | l10ntools/source/xrmmerge.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/l10ntools/source/xrmmerge.cxx b/l10ntools/source/xrmmerge.cxx index 5871948124ed..680f0cacfa17 100644 --- a/l10ntools/source/xrmmerge.cxx +++ b/l10ntools/source/xrmmerge.cxx @@ -400,12 +400,10 @@ void XRMResExport::WorkOnDesc( rtl::OString sDescFileName( sInputFileName.replaceAll("description.xml", rtl::OString())); sDescFileName += GetAttribute( rOpenTag, "xlink:href" ); - int size; - char * memblock; ifstream file (sDescFileName.getStr(), ios::in|ios::binary|ios::ate); if (file.is_open()) { - size = static_cast<int>(file.tellg()); - memblock = new char [size+1]; + int size = static_cast<int>(file.tellg()); + char* memblock = new char [size+1]; file.seekg (0, ios::beg); file.read (memblock, size); file.close(); |