diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-09-11 16:49:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-09-11 19:12:28 +0200 |
commit | 01dc9413e1dbc5206f67ede8c6bb81f0eac73dc2 (patch) | |
tree | aff5ce01ca077a3c7caf7f2ac71ae579b3f1bb00 /extensions | |
parent | 35efd72da5847a391fdba94a21ee2206ef7539c5 (diff) |
loplugin:stringbuffer (clang-cl)
Change-Id: Ie49cd58e7363c834c02769dda7c5aa83cca4f587
Reviewed-on: https://gerrit.libreoffice.org/60324
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/config/WinUserInfo/WinUserInfoBe.cxx | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx index 5a63f7294906..188df1c1cce6 100644 --- a/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx +++ b/extensions/source/config/WinUserInfo/WinUserInfoBe.cxx @@ -220,21 +220,27 @@ private: { const OUString sNul('\0'); OUStringBuffer sCachedData(200); - sCachedData.append("user=" + m_sUserDN); - sCachedData.append(sNul + givenname + "=" + GetGivenName()); - sCachedData.append(sNul + sn + "=" + GetSn()); - sCachedData.append(sNul + initials + "=" + GetInitials()); - sCachedData.append(sNul + street + "=" + GetStreet()); - sCachedData.append(sNul + l + "=" + GetCity()); - sCachedData.append(sNul + st + "=" + GetState()); - sCachedData.append(sNul + postalcode + "=" + GetPostalCode()); - sCachedData.append(sNul + c + "=" + GetCountry()); - sCachedData.append(sNul + o + "=" + GetOrganization()); - sCachedData.append(sNul + title + "=" + GetTitle()); - sCachedData.append(sNul + homephone + "=" + GetHomePhone()); - sCachedData.append(sNul + telephonenumber + "=" + GetTelephoneNumber()); - sCachedData.append(sNul + facsimiletelephonenumber + "=" + GetFaxNumber()); - sCachedData.append(sNul + mail + "=" + GetMail()); + sCachedData.append("user=").append(m_sUserDN); + sCachedData.append(sNul).append(givenname).append("=").append(GetGivenName()); + sCachedData.append(sNul).append(sn).append("=").append(GetSn()); + sCachedData.append(sNul).append(initials).append("=").append(GetInitials()); + sCachedData.append(sNul).append(street).append("=").append(GetStreet()); + sCachedData.append(sNul).append(l).append("=").append(GetCity()); + sCachedData.append(sNul).append(st).append("=").append(GetState()); + sCachedData.append(sNul).append(postalcode).append("=").append(GetPostalCode()); + sCachedData.append(sNul).append(c).append("=").append(GetCountry()); + sCachedData.append(sNul).append(o).append("=").append(GetOrganization()); + sCachedData.append(sNul).append(title).append("=").append(GetTitle()); + sCachedData.append(sNul).append(homephone).append("=").append(GetHomePhone()); + sCachedData.append(sNul) + .append(telephonenumber) + .append("=") + .append(GetTelephoneNumber()); + sCachedData.append(sNul) + .append(facsimiletelephonenumber) + .append("=") + .append(GetFaxNumber()); + sCachedData.append(sNul).append(mail).append("=").append(GetMail()); const css::uno::Sequence<sal_Int8> seqCachedData( reinterpret_cast<const sal_Int8*>(sCachedData.getStr()), sCachedData.getLength() * sizeof(sal_Unicode)); |