summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-09-01 19:07:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-09-02 08:56:56 +0200
commitaff6205058e896ffa129f9efa470b49adee0a09d (patch)
treebb5c8949abc395a67950c02ebca0eb2407dd817b /sc/source/core
parent9c636d76a9a7e167da39913ab60f5135f8e831a6 (diff)
replace set(nullptr) with clear()
It's a little easier to read, but mostly it makes an upcoming loplugin easier to implement Change-Id: I4ae7db8eda77795dab3255d1afd8ba4f20a8de76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156451 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/dpobject.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index f3c989ee8293..6c5c4e96a9f4 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -3273,7 +3273,7 @@ uno::Reference<sdbc::XRowSet> ScDPCollection::DBCaches::createRowSet(
OSL_ENSURE( xRowProp.is(), "can't get RowSet" );
if (!xRowProp.is())
{
- xRowSet.set(nullptr);
+ xRowSet.clear();
return xRowSet;
}
@@ -3309,7 +3309,7 @@ uno::Reference<sdbc::XRowSet> ScDPCollection::DBCaches::createRowSet(
TOOLS_WARN_EXCEPTION( "sc", "Unexpected exception in database");
}
- xRowSet.set(nullptr);
+ xRowSet.clear();
return xRowSet;
}