summaryrefslogtreecommitdiff
path: root/vcl/win/app/salshl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-06-12 20:11:20 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-06-17 06:38:57 +0000
commit9c79945ca62b18213728cdd23d9f390304aee1de (patch)
tree94bb9cc30cbb5bb5508875d80fcf975b673fe0ac /vcl/win/app/salshl.cxx
parent29e91d5eedd2bf20504ce9ada625d33fec19dc9e (diff)
convert DBG_ASSERT in vcl
Change-Id: I732fb1a789f90ca7a7f393cc41a6afe84fecf3d3 Reviewed-on: https://gerrit.libreoffice.org/26200 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/win/app/salshl.cxx')
-rw-r--r--vcl/win/app/salshl.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcl/win/app/salshl.cxx b/vcl/win/app/salshl.cxx
index c418063eaf45..d2213efd61a1 100644
--- a/vcl/win/app/salshl.cxx
+++ b/vcl/win/app/salshl.cxx
@@ -32,29 +32,29 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD nReason, LPVOID)
HCURSOR ImplLoadSalCursor( int nId )
{
- DBG_ASSERT( aSalShlData.mhInst, "no DLL instance handle" );
+ SAL_WARN_IF( !aSalShlData.mhInst, "vcl", "no DLL instance handle" );
HCURSOR hCursor = LoadCursor( aSalShlData.mhInst, MAKEINTRESOURCE( nId ) );
- DBG_ASSERT( hCursor, "cursor not found in sal resource" );
+ SAL_WARN_IF( !hCursor, "vcl", "cursor not found in sal resource" );
return hCursor;
}
HBITMAP ImplLoadSalBitmap( int nId )
{
- DBG_ASSERT( aSalShlData.mhInst, "no DLL instance handle" );
+ SAL_WARN_IF( !aSalShlData.mhInst, "vcl", "no DLL instance handle" );
HBITMAP hBitmap = LoadBitmap( aSalShlData.mhInst, MAKEINTRESOURCE( nId ) );
- DBG_ASSERT( hBitmap, "bitmap not found in sal resource" );
+ SAL_WARN_IF( !hBitmap, "vcl", "bitmap not found in sal resource" );
return hBitmap;
}
bool ImplLoadSalIcon( int nId, HICON& rIcon, HICON& rSmallIcon )
{
- DBG_ASSERT( aSalShlData.mhInst, "no DLL instance handle" );
+ SAL_WARN_IF( !aSalShlData.mhInst, "vcl", "no DLL instance handle" );
SalData* pSalData = GetSalData();