summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-07-24 23:18:26 +0200
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-07-24 23:18:50 +0200
commit678ad50a5eaf2b8826e7f8b0f34eb3229559d4ec (patch)
treee4f4a5b2602ae771586ce94a014ca0233c727818
parentdc0b5fa230ff5624aff0d5ea174c17e895967dbd (diff)
fix coding style
Change-Id: I4841929ac8f1a50892d72f7b2a32ba2f55b62a85
-rw-r--r--sc/source/ui/docshell/datastream.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/ui/docshell/datastream.cxx b/sc/source/ui/docshell/datastream.cxx
index ba69d454676b..449a992fd7a2 100644
--- a/sc/source/ui/docshell/datastream.cxx
+++ b/sc/source/ui/docshell/datastream.cxx
@@ -501,16 +501,17 @@ void DataStream::MoveData()
default:
;
}
- if(mbIsFirst&&mbIsUpdate)
+
+ if(mbIsFirst && mbIsUpdate)
{
- int importTimeout = 0;
- char * cenv = getenv( "streamtimeout" );
+ int nImportTimeout = 0;
+ static char * cenv = getenv( "streamtimeout" );
if(cenv)
{
- double denv = atof(cenv);
- importTimeout = 1000 * denv;
+ double nEnv = atof(cenv);
+ nImportTimeout = 1000 * nEnv;
}
- maImportTimer.SetTimeout(importTimeout);
+ maImportTimer.SetTimeout(nImportTimeout);
mbIsFirst = false;
}
}