[Libreoffice-commits] core.git: sw/source
Julien Nabet
serval2412 at yahoo.fr
Sat Mar 22 15:13:02 PDT 2014
sw/source/core/graphic/ndgrf.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit b79a361f25e10b71444369e5001bb0103daa1b5e
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Sat Mar 22 23:12:22 2014 +0100
cppcheck: fix reassigned var
Change-Id: I20e421c216aa9053face25d00873928023ca859b
diff --git a/sw/source/core/graphic/ndgrf.cxx b/sw/source/core/graphic/ndgrf.cxx
index f593a3e..a08403b 100644
--- a/sw/source/core/graphic/ndgrf.cxx
+++ b/sw/source/core/graphic/ndgrf.cxx
@@ -772,10 +772,9 @@ void SwGrfNode::ReleaseLink()
// when inserting a linked graphic and save, reload document. Try to access
// that data from the original file; if this works, use it. Else use the
// data we have (but without knowing the original format)
- int nRes = GRFILTER_OK;
GraphicFilter& rFlt = GraphicFilter::GetGraphicFilter();
Graphic aNew;
- nRes = GraphicFilter::LoadGraphic( aFileName, OUString(), aNew, &rFlt);
+ int nRes = GraphicFilter::LoadGraphic( aFileName, OUString(), aNew, &rFlt);
if(GRFILTER_OK == nRes)
{
More information about the Libreoffice-commits
mailing list