summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2014-10-11 17:21:54 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2014-10-11 17:21:54 +0000
commitccb75de1cadbe4c2e8ad833cbbcd1bc8f79cd548 (patch)
tree4c5167ef457bccdd227d7c80524285f85fad1b97
parentFix uninitialized variable use in svg-color.cpp. (additionally reduce scope o... (diff)
downloadinkscape-ccb75de1cadbe4c2e8ad833cbbcd1bc8f79cd548.tar.gz
inkscape-ccb75de1cadbe4c2e8ad833cbbcd1bc8f79cd548.zip
LPEVonKoch : remove redundant assignment (is taken care of by the following if-statement)
Found by clang static analyzer (bzr r13589)
-rw-r--r--src/live_effects/lpe-vonkoch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/live_effects/lpe-vonkoch.cpp b/src/live_effects/lpe-vonkoch.cpp
index 8b0b716fe..7e396e84a 100644
--- a/src/live_effects/lpe-vonkoch.cpp
+++ b/src/live_effects/lpe-vonkoch.cpp
@@ -133,7 +133,7 @@ LPEVonKoch::doEffect_path (std::vector<Geom::Path> const & path_in)
for (unsigned k = 0; k < path_in.size(); k++){
path_in_complexity+=path_in[k].size();
}
- double complexity = std::pow(transforms.size(),nbgenerations)*path_in_complexity;
+ double complexity;
if (drawall.get_value()){
int k = transforms.size();
if(k>1){