diff options
Diffstat (limited to 'sw/source/core/doc/docdesc.cxx')
-rw-r--r-- | sw/source/core/doc/docdesc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index 9da9fb21ad9d..0ea944693996 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -695,9 +695,9 @@ void SwDoc::PrtOLENotify( bool bAll ) { for(SwViewShell& rShell : pSh->GetRingContainer()) { - if(dynamic_cast<const SwFEShell*>( &rShell) != nullptr) + if(auto pFEShell = dynamic_cast<SwFEShell*>( &rShell)) { - pShell = static_cast<SwFEShell*>(&rShell); + pShell = pFEShell; break; } } |