diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-06-11 19:05:15 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-12 09:04:15 +0000 |
commit | ab10f9fc11948ca0f463aa8c0c784a574c89f8f7 (patch) | |
tree | 5050920ca6af8c8cd4e39854066b334560e6e87e /sd | |
parent | c0d7dfa56c8a335bdea1be2ddce33a0f19b28bbd (diff) |
convert DBG_ASSERT(false, to SAL_WARN(
Change-Id: I400d728c5d99228c5ca52e369037395b4da2af5c
Reviewed-on: https://gerrit.libreoffice.org/26187
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/docshell/docshel4.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/sidebar/MasterPageContainerProviders.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/sidebar/MasterPageDescriptor.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx | 2 | ||||
-rw-r--r-- | sd/source/ui/view/ViewShellBase.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/ViewShellManager.cxx | 4 |
6 files changed, 8 insertions, 8 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx index 5743e4e39dee..844548ff00a0 100644 --- a/sd/source/ui/docshell/docshel4.cxx +++ b/sd/source/ui/docshell/docshel4.cxx @@ -218,7 +218,7 @@ void DrawDocShell::UpdateRefDevice() // We are confronted with an invalid or un-implemented // layout mode. Use the printer as formatting device // as a fall-back. - DBG_ASSERT(false, "DrawDocShell::UpdateRefDevice(): Unexpected printer layout mode"); + SAL_WARN( "sd", "DrawDocShell::UpdateRefDevice(): Unexpected printer layout mode"); pRefDevice = mpPrinter.get(); break; diff --git a/sd/source/ui/sidebar/MasterPageContainerProviders.cxx b/sd/source/ui/sidebar/MasterPageContainerProviders.cxx index 3bec4c2ce059..86958f670f1d 100644 --- a/sd/source/ui/sidebar/MasterPageContainerProviders.cxx +++ b/sd/source/ui/sidebar/MasterPageContainerProviders.cxx @@ -186,7 +186,7 @@ SdPage* DefaultPageObjectProvider::operator () (SdDrawDocument* pContainerDocume if (pLocalMasterPage == nullptr) { - DBG_ASSERT(false, "can not create master page for slide"); + SAL_WARN( "sd", "can not create master page for slide"); } return pLocalMasterPage; diff --git a/sd/source/ui/sidebar/MasterPageDescriptor.cxx b/sd/source/ui/sidebar/MasterPageDescriptor.cxx index 3b5e5f83840a..b60725562626 100644 --- a/sd/source/ui/sidebar/MasterPageDescriptor.cxx +++ b/sd/source/ui/sidebar/MasterPageDescriptor.cxx @@ -200,7 +200,7 @@ int MasterPageDescriptor::UpdatePageObject ( } else { - DBG_ASSERT(false, "UpdatePageObject: master page is NULL"); + SAL_WARN( "sd", "UpdatePageObject: master page is NULL"); return -1; } diff --git a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx index 46d1c24d80f5..216410273c26 100644 --- a/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx +++ b/sd/source/ui/slidesorter/view/SlsLayeredDevice.cxx @@ -485,7 +485,7 @@ void Layer::RemovePainter (const SharedILayerPainter& rpPainter) } else { - DBG_ASSERT(false,"LayeredDevice::RemovePainter called for painter that is not registered"); + SAL_WARN("sd", "LayeredDevice::RemovePainter called for painter that is not registered"); } } diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx index 72b3f3b94532..e5c92f42de95 100644 --- a/sd/source/ui/view/ViewShellBase.cxx +++ b/sd/source/ui/view/ViewShellBase.cxx @@ -907,7 +907,7 @@ OUString ViewShellBase::GetInitialViewShellType() // The page kind is invalid. This is probably an // error by the caller. We use the standard type to // keep things going. - DBG_ASSERT(false, "ViewShellBase::GetInitialViewShellType: invalid page kind"); + SAL_WARN( "sd", "ViewShellBase::GetInitialViewShellType: invalid page kind"); sRequestedView = FrameworkHelper::msImpressViewURL; break; } @@ -1415,7 +1415,7 @@ void CurrentPageSetter::operator() (bool) } catch (const beans::UnknownPropertyException&) { - DBG_ASSERT(false,"CurrentPage property unknown"); + SAL_WARN("sd", "CurrentPage property unknown"); } } } diff --git a/sd/source/ui/view/ViewShellManager.cxx b/sd/source/ui/view/ViewShellManager.cxx index ded5aa5d3349..c2432ac34ec4 100644 --- a/sd/source/ui/view/ViewShellManager.cxx +++ b/sd/source/ui/view/ViewShellManager.cxx @@ -438,7 +438,7 @@ void ViewShellManager::Implementation::ActivateViewShell (ViewShell* pViewShell) } else { - DBG_ASSERT(false, + SAL_WARN("sd", "ViewShellManager::ActivateViewShell: " "new view shell has no active window"); } @@ -1132,7 +1132,7 @@ void ViewShellManager::Implementation::Shutdown() } else { - DBG_ASSERT(false, + SAL_WARN("sd", "ViewShellManager::Implementation::Shutdown(): empty active shell descriptor"); maActiveViewShells.pop_front(); } |