Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Remove an unnecessary assignment from the readLod function.

Elena Sagalaevae6d4ae1c1332
diff --git a/libs/image/kis_lock_free_lod_counter.h b/libs/image/kis_lock_free_lod_counter.h
index 2231048dcb..8352adf0f6 100644
--- a/libs/image/kis_lock_free_lod_counter.h
+++ b/libs/image/kis_lock_free_lod_counter.h
@@ -54,11 +54,9 @@ public:
}
int readLod() const {
- int value = m_num;
-
- int counter;
- int lod;
- unpackLod(value, &counter, &lod);
+ int counter = 0;
+ int lod = 0;
+ unpackLod(m_num, &counter, &lod);
return counter ? lod : -1;
}