summaryrefslogtreecommitdiff
path: root/l10ntools/source/gConvXrm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/source/gConvXrm.cxx')
-rw-r--r--l10ntools/source/gConvXrm.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/l10ntools/source/gConvXrm.cxx b/l10ntools/source/gConvXrm.cxx
index 1dcc558198f3..a42a90c10dad 100644
--- a/l10ntools/source/gConvXrm.cxx
+++ b/l10ntools/source/gConvXrm.cxx
@@ -49,12 +49,10 @@ void convert_xrm::doExecute()
void convert_xrm::setId(char *yytext)
{
string& sText = copySource(yytext, mbNoCollectingData);
- int nL, nE;
-
if (mbIsTag) {
- nL = sText.find("\"");
- nE = sText.find("\"", nL+1);
+ int nL = sText.find("\"");
+ int nE = sText.find("\"", nL+1);
if (nL == (int)string::npos || nE == (int)string::npos)
return;
@@ -67,17 +65,14 @@ void convert_xrm::setId(char *yytext)
void convert_xrm::setLang(char *yytext)
{
string& sText = copySource(yytext, mbNoCollectingData);
- string sLang;
- int nL, nE;
-
if (mbIsTag) {
- nL = sText.find("\"");
- nE = sText.find("\"", nL+1);
+ int nL = sText.find("\"");
+ int nE = sText.find("\"", nL+1);
if (nL == (int)string::npos || nE == (int)string::npos)
return;
- sLang = sText.substr(nL+1, nE - nL -1);
+ string sLang = sText.substr(nL+1, nE - nL -1);
if (sLang == "en-US")
mbIsLang = true;
else