summaryrefslogtreecommitdiff
path: root/l10ntools/source/export.cxx
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-25 11:57:39 +0100
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-25 12:01:59 +0100
commit56a52889e65a17e324fc10cf341690385f5a9dd9 (patch)
tree00b1b49b1ea5fc63c2ab01838a55afb5d420c1ad /l10ntools/source/export.cxx
parent2d8547d095897037388b27075fd7dc182a4e4912 (diff)
Remove unneeded project and projectroot parameters
Plus avoid use of Export::sLanguages member outside of the class. Change-Id: I33702816fdb4980d690cfe8fcd8cc3fbd0df1dd8
Diffstat (limited to 'l10ntools/source/export.cxx')
-rw-r--r--l10ntools/source/export.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 47cfc692d8f5..0071f0600910 100644
--- a/l10ntools/source/export.cxx
+++ b/l10ntools/source/export.cxx
@@ -41,8 +41,6 @@ MergeDataFile * pMergeDataFile = 0; //TODO
namespace global {
-OString prj;
-OString prjRoot;
OString inputPathname;
boost::scoped_ptr< Export > exporter;
@@ -56,12 +54,11 @@ FILE * init(int argc, char ** argv) {
HandledArgs aArgs;
if ( !Export::handleArguments(argc, argv, aArgs) )
{
- Export::writeUsage("transex3","src/hrc");
+ Export::writeUsage("transex3","*.src/*.hrc");
std::exit(EXIT_FAILURE);
}
+ Export::sLanguages = aArgs.m_sLanguage;
Export::InitLanguages();
- global::prj = aArgs.m_sPrj;
- global::prjRoot = aArgs.m_sPrjRoot;
global::inputPathname = aArgs.m_sInputFile;
FILE * pFile = std::fopen(global::inputPathname.getStr(), "r");
@@ -172,8 +169,6 @@ Export::Export(const rtl::OString &rOutput)
nListIndex( 0 ),
nListLevel( 0 ),
bSkipFile( false ),
- sProject( global::prj ),
- sRoot( global::prjRoot ),
bMergeMode( false ),
bError( sal_False ),
bReadOver( sal_False ),
@@ -203,8 +198,6 @@ Export::Export(const rtl::OString &rMergeSource, const rtl::OString &rOutput)
nListIndex( 0 ),
nListLevel( 0 ),
bSkipFile( false ),
- sProject( global::prj ),
- sRoot( global::prjRoot ),
bMergeMode( sal_True ),
sMergeSrc( rMergeSource ),
bError( sal_False ),