diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-09-10 13:46:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-10 15:40:46 +0200 |
commit | 9908e48932e0cdac9785c05ff1d4c0e482ea78ca (patch) | |
tree | 9fd81dbf44961899efb88af60b787c476834416f /sw | |
parent | a539db002bc9ee6692d14cde2aaa166bd213eb51 (diff) |
remove warnings in SwTransparencyGrf Get/Put Value
These have been here since
commit 930f64d3f903787368a8c8cc86857a2932da815e
Author: Oliver Specht <os@openoffice.org>
Date: Thu Dec 14 10:48:47 2000 +0000
#82036# graphic attributes added to the API
so it is unlikely that SwTransparencyGrf will ever be
changed to a sal_uInt16
Change-Id: I634901f07f40dee556f215daa733284c32685510
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139751
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/graphic/grfatr.cxx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sw/source/core/graphic/grfatr.cxx b/sw/source/core/graphic/grfatr.cxx index 50a84c12fb8e..bf7ff665bc47 100644 --- a/sw/source/core/graphic/grfatr.cxx +++ b/sw/source/core/graphic/grfatr.cxx @@ -275,8 +275,6 @@ SwTransparencyGrf* SwTransparencyGrf::Clone( SfxItemPool * ) const bool SwTransparencyGrf::QueryValue( uno::Any& rVal, sal_uInt8 ) const { - //OSL_ENSURE(dynamic_cast<const SfxByteItem*>( this ) != nullptr,"Put/QueryValue should be removed!"); - SAL_WARN("sw", "Put/QueryValue should be removed!"); sal_Int16 nRet = GetValue(); OSL_ENSURE( 0 <= nRet && nRet <= 100, "value out of range" ); rVal <<= nRet; @@ -286,9 +284,6 @@ bool SwTransparencyGrf::QueryValue( uno::Any& rVal, bool SwTransparencyGrf::PutValue( const uno::Any& rVal, sal_uInt8 ) { - //temporary conversion until this is a SfxInt16Item! - //OSL_ENSURE(dynamic_cast<const SfxByteItem*>( this ) != nullptr,"Put/QueryValue should be removed!"); - SAL_WARN("sw", "Put/QueryValue should be removed!"); sal_Int16 nVal = 0; if(!(rVal >>= nVal) || nVal < -100 || nVal > 100) return false; |