summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-04 19:35:20 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-06 22:41:28 +0200
commit48f69c30721c424dfce98bf6486400df72ab82f7 (patch)
treeb5446bca098a2683955c7632030e52d266f697bb /idlc
parent1d7e004c1eac97fd94a64490f5d629c8c6b5183f (diff)
[cppchecker] deletion of unread / unneeded variable
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlccompile.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index e660a0087972..5f4ff7bf9f64 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -201,14 +201,13 @@ sal_Bool copyFile(const OString* source, const OString& target)
size_t totalSize = 512;
size_t readSize = 0;
- size_t writeSize = 0;
char pBuffer[513];
while ( !feof(pSource) )
{
if ( (readSize = fread(pBuffer, 1, totalSize, pSource)) > 0 && !ferror(pSource) )
{
- if ( (writeSize = fwrite(pBuffer, 1, readSize, pTarget)) != readSize || ferror(pTarget) )
+ if ( (fwrite(pBuffer, 1, readSize, pTarget)) != readSize || ferror(pTarget) )
{
if (source != 0) {
fclose(pSource);