Commit e69cd723 authored by Albert Astals Cid's avatar Albert Astals Cid Committed by Albert Astals Cid

No need to store to a QImage variable to not use it later

Makes clazy happier
parent 8969d878
......@@ -49,7 +49,7 @@ int main( int argc, char **argv )
for( int index = 0; index < doc->numPages(); ++index ) {
Poppler::Page *page = doc->page( index );
QImage image = page->renderToImage();
page->renderToImage();
page->pageSize();
page->orientation();
delete page;
......
......@@ -56,7 +56,7 @@ int main( int argc, char **argv )
for( int index = 0; index < doc->numPages(); ++index ) {
Poppler::Page *page = doc->page( index );
QImage image = page->renderToImage();
page->renderToImage();
page->pageSize();
page->orientation();
delete page;
......
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