Diffusion Kooka c2ba68ee5329

Pass KookaImage to OCR by reference, to avoid generating a copy

Authored by marten on Nov 4 2019, 11:36 AM.

Description

Pass KookaImage to OCR by reference, to avoid generating a copy

Implicit generation of a copy constructor identified by GCC 9.2.0:

app/kookaview.cpp: In member function 'void KookaView::slotStartOcr()':
app/kookaview.cpp:742: warning: implicitly-declared 'KookaImage::KookaImage(const KookaImage&)' is deprecated
In file included from app/kookaview.cpp:67:
app/kookaimage.h:59: note: because 'KookaImage' has user-provided 'KookaImage& KookaImage::operator=(const KookaImage&)'
In file included from app/kookaview.cpp:32:
app/kookaview.h:209: note: initializing argument 1 of 'void KookaView::startOCR(KookaImage)'
app/kookaview.cpp: In member function 'void KookaView::startOCR(KookaImage)':
app/kookaview.cpp:823: warning: implicitly-declared 'KookaImage::KookaImage(const KookaImage&)' is deprecated
In file included from app/kookaview.cpp:67:
app/kookaimage.h:59: note: because 'KookaImage' has user-provided 'KookaImage& KookaImage::operator=(const KookaImage&)'
In file included from app/kookaview.cpp:68:
plugins/ocr/abstractocrengine.h:88: note: initializing argument 1 of 'void AbstractOcrEngine::setImage(KookaImage)'

Details

Committed
martenNov 4 2019, 11:36 AM
Parents
R660:38f900e40371: Extract I18N messages for plugins (into 'kooka.po')
Branches
Unknown
Tags
Unknown