Kaydet (Commit) e8db509e authored tarafından Caolán McNamara's avatar Caolán McNamara

pvs-studio: _pView was already dereferenced

Change-Id: I72511a46524d02007c7b8e8b0e6486d62cbc7fa0
Reviewed-on: https://gerrit.libreoffice.org/62103
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 6837fbb1
......@@ -735,7 +735,7 @@ namespace
// only show the messagebox the first time
if (!bCritsOnAsterikWarning)
{
std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(_pView ? _pView->GetFrameWeld() : nullptr,
std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(_pView->GetFrameWeld(),
VclMessageType::Warning, VclButtonsType::Ok,
DBA_RES(STR_QRY_CRITERIA_ON_ASTERISK)));
xBox->run();
......@@ -891,7 +891,7 @@ namespace
// only show the MessageBox the first time
if (!bCritsOnAsterikWarning)
{
std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(_pView ? _pView->GetFrameWeld() : nullptr,
std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(_pView->GetFrameWeld(),
VclMessageType::Warning, VclButtonsType::Ok,
DBA_RES(STR_QRY_ORDERBY_ON_ASTERISK)));
xBox->run();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment