diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-08-21 14:41:36 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-08-21 15:47:26 +0200 |
commit | d5da67752e8adab792ed43f072b3d553bd3b0272 (patch) | |
tree | 857801ffb17152dd09d02f515ef1b9a9526e4172 /extensions/source | |
parent | f0575619d1c30131b7959ee8fc35eb57e5cf12b2 (diff) |
Simplify a bit
Change-Id: I35ca6c1981bff2e7b91f7c1900fd3bdf3f98ef3f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172174
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'extensions/source')
-rw-r--r-- | extensions/source/config/WinUserInfo/WinUserInfoBe.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx index 3e76f6faa9ce..b4a7b89f045a 100644 --- a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx +++ b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx @@ -157,13 +157,12 @@ private: } static OUString Str(IADsUser* pUser, const wchar_t* property) { - sal::systools::BStr sBstrProp{ o3tl::toU(property) }; struct AutoVariant : public VARIANT { AutoVariant() { VariantInit(this); } ~AutoVariant() { VariantClear(this); } } varArr; - if (FAILED(pUser->GetEx(sBstrProp, &varArr))) + if (FAILED(pUser->GetEx(sal::systools::BStr(o3tl::toU(property)), &varArr))) return ""; SAFEARRAY* sa = V_ARRAY(&varArr); LONG nStart, nEnd; |