diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-03 08:31:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-05-03 15:01:33 +0200 |
commit | 1425cbc50a9183477a12e413a0519867c0a589fa (patch) | |
tree | f433b54ab7254ca9dc5fba49ae50eb636ca26caf /accessibility/source/extended/AccessibleBrowseBox.cxx | |
parent | 23d5c8ed000adc4d66f24ddd67b73a8e5c8a0511 (diff) |
WaE: C6011 Dereferencing NULL pointer warnings
Change-Id: I8a15be14850b9fe48f80820f4308c35748497727
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167034
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'accessibility/source/extended/AccessibleBrowseBox.cxx')
-rw-r--r-- | accessibility/source/extended/AccessibleBrowseBox.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/accessibility/source/extended/AccessibleBrowseBox.cxx b/accessibility/source/extended/AccessibleBrowseBox.cxx index 8408c0abe23a..705df2536cfe 100644 --- a/accessibility/source/extended/AccessibleBrowseBox.cxx +++ b/accessibility/source/extended/AccessibleBrowseBox.cxx @@ -168,23 +168,19 @@ void SAL_CALL AccessibleBrowseBox::grabFocus() } // XServiceInfo - OUString SAL_CALL AccessibleBrowseBox::getImplementationName() { return u"com.sun.star.comp.svtools.AccessibleBrowseBox"_ustr; } - // internal virtual methods - tools::Rectangle AccessibleBrowseBox::implGetBoundingBox() { vcl::Window* pParent = mpBrowseBox->GetAccessibleParentWindow(); - OSL_ENSURE( pParent, "implGetBoundingBox - missing parent window" ); + assert(pParent && "implGetBoundingBox - missing parent window"); return mpBrowseBox->GetWindowExtentsRelative( *pParent ); } - AbsoluteScreenPixelRectangle AccessibleBrowseBox::implGetBoundingBoxOnScreen() { return mpBrowseBox->GetWindowExtentsAbsolute(); |