diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-27 09:43:22 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-27 12:59:23 +0000 |
commit | 850a8d27ca696f18ce0c529346f8bb8505499545 (patch) | |
tree | 5641e81912760029683e1c544e01af25eee23523 /forms | |
parent | 6c974272423ca19c94d8d5e182fec46836309d60 (diff) |
Convert GRAPHIC to scoped enum
Change-Id: I1fd09a729cbda00f99841532e0dd3fa66bce7bea
Reviewed-on: https://gerrit.libreoffice.org/25534
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms')
-rw-r--r-- | forms/source/component/imgprod.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index e279cde4cef8..ad635ab4a095 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -259,7 +259,7 @@ void ImageProducer::setImage( css::uno::Reference< css::io::XInputStream > & rIn void ImageProducer::NewDataAvailable() { - if( ( GRAPHIC_NONE == mpGraphic->GetType() ) || mpGraphic->GetContext() ) + if( ( GraphicType::NONE == mpGraphic->GetType() ) || mpGraphic->GetContext() ) startProduction(); } @@ -271,17 +271,17 @@ void ImageProducer::startProduction() throw(css::uno::RuntimeException, std::exc bool bNotifyEmptyGraphics = false; // valid stream or filled graphic? => update consumers - if( mpStm || ( mpGraphic->GetType() != GRAPHIC_NONE ) ) + if( mpStm || ( mpGraphic->GetType() != GraphicType::NONE ) ) { // if we already have a graphic, we don't have to import again; // graphic is cleared if a new Stream is set - if( ( mpGraphic->GetType() == GRAPHIC_NONE ) || mpGraphic->GetContext() ) + if( ( mpGraphic->GetType() == GraphicType::NONE ) || mpGraphic->GetContext() ) { if ( ImplImportGraphic( *mpGraphic ) ) maDoneHdl.Call( mpGraphic ); } - if( mpGraphic->GetType() != GRAPHIC_NONE ) + if( mpGraphic->GetType() != GraphicType::NONE ) ImplUpdateData( *mpGraphic ); else bNotifyEmptyGraphics = true; |