We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc0889 commit 62896f8Copy full SHA for 62896f8
1 file changed
examples/command-line/main.cpp
@@ -192,7 +192,7 @@ int main(int argc, char *argv[])
192
193
for (int i = 0; i < count; i++)
194
{
195
- CCapturedResult *result = (CCapturedResult *)captureResultArray->GetResult(i);
+ const CCapturedResult *result = captureResultArray->GetResult(i);
196
result->GetOriginalImageTag()->GetImageId();
197
cout << ">>>>>>>>>>>>>>>>> Image " << i + 1 << ":" << endl;
198
cout << result->GetErrorString() << endl;
@@ -226,9 +226,8 @@ int main(int argc, char *argv[])
226
}
227
if (barcodeResult)
228
barcodeResult->Release();
229
-
230
- result->Release();
231
+ captureResultArray->Release();
232
233
234
0 commit comments