mark vars only used for asserts as unused

--warnings
parent 154c1210
......@@ -50,7 +50,7 @@ ClonesArray::~ClonesArray()
void ClonesArray::slotCreateClonesArray()
{
KisImageWSP image = m_view->image();
Q_ASSERT(image);
Q_ASSERT(image); Q_UNUSED(image);
DlgClonesArray *dialog = new DlgClonesArray(m_view, m_view);
Q_CHECK_PTR(dialog);
......
......@@ -53,7 +53,7 @@ void PSDColorModeBlockTest::testLoadingRGB()
PSDColorModeBlock colorModeBlock(header.colormode);
bool retval = colorModeBlock.read(&f);
Q_ASSERT(retval);
Q_ASSERT(retval); Q_UNUSED(retval);
Q_ASSERT(colorModeBlock.valid());
}
......@@ -70,7 +70,7 @@ void PSDColorModeBlockTest::testLoadingIndexed()
PSDColorModeBlock colorModeBlock(header.colormode);
bool retval = colorModeBlock.read(&f);
Q_ASSERT(retval);
Q_ASSERT(retval); Q_UNUSED(retval);
Q_ASSERT(colorModeBlock.valid());
}
......
......@@ -67,7 +67,7 @@ void PSDHeaderTest::testRoundTripping()
header.colormode = RGB;
Q_ASSERT(header.valid());
bool retval = header.write(&f);
Q_ASSERT(retval);
Q_ASSERT(retval); Q_UNUSED(retval);
f.close();
f.open(QIODevice::ReadOnly);
......
......@@ -95,7 +95,7 @@ KoCanvasResourceManager* utils::createResourceManager(KisImageWSP image,
QString fullFileName = TestUtil::fetchDataFileLazy(presetFileName);
preset = new KisPaintOpPreset(fullFileName);
bool presetValid = preset->load();
Q_ASSERT(presetValid);
Q_ASSERT(presetValid); Q_UNUSED(presetValid);
i.setValue(preset);
manager->setResource(KisCanvasResourceProvider::CurrentPaintOpPreset, i);
......
......@@ -78,7 +78,7 @@ void KisSelectionDecoration::setMode(Mode mode)
bool KisSelectionDecoration::selectionIsActive()
{
KisImageWSP image = view()->image();
Q_ASSERT(image);
Q_ASSERT(image); Q_UNUSED(image);
KisSelectionSP selection = view()->selection();
return visible() && selection &&
......
......@@ -37,7 +37,7 @@ void TestKoBookmarkManager::testCreation()
Q_ASSERT(manager);
KoBookmark* bm = manager->bookmark("bla");
Q_ASSERT(bm == 0);
Q_ASSERT(bm == 0); Q_UNUSED(bm);
QList<QString> bmlist = manager->bookmarkNameList();
Q_ASSERT(bmlist.isEmpty());
......@@ -59,7 +59,7 @@ void TestKoBookmarkManager::testInsertAndRetrieve()
manager.insert("another2", new KoBookmark(cursor));
KoBookmark *bm = manager.bookmark("start!");
Q_ASSERT(bm == mark);
Q_ASSERT(bm == mark); Q_UNUSED(bm);
}
void TestKoBookmarkManager::testRemove()
......
......@@ -134,7 +134,7 @@ void TestKoInlineTextObjectManager::testRemoveInlineObject()
manager.removeInlineObject(obj);
KoInlineObject *obj2 = manager.inlineTextObject(id);
Q_ASSERT(obj2 == 0);
Q_ASSERT(obj2 == 0); Q_UNUSED(obj2);
// this should not crash, even though we were a listener
manager.setProperty(KoInlineObject::UserGet, "bla");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment