[Libreoffice-commits] core.git: connectivity/qa
Julien Nabet (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 14 21:09:35 UTC 2021
connectivity/qa/connectivity/resource/sharedresources_test.cxx | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
New commits:
commit be96aa21aed3069775609780566541b3631cbbe1
Author: Julien Nabet <serval2412 at yahoo.fr>
AuthorDate: Fri May 14 12:58:25 2021 +0200
Commit: Julien Nabet <serval2412 at yahoo.fr>
CommitDate: Fri May 14 23:08:54 2021 +0200
Simplify a bit initialization in sharedresources_test.cxx
Change-Id: I5c3fb9fffc9ac541536a8e9cf824789d9c107b3e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115597
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412 at yahoo.fr>
diff --git a/connectivity/qa/connectivity/resource/sharedresources_test.cxx b/connectivity/qa/connectivity/resource/sharedresources_test.cxx
index dfc62a763bbd..9c8f4e4396b7 100644
--- a/connectivity/qa/connectivity/resource/sharedresources_test.cxx
+++ b/connectivity/qa/connectivity/resource/sharedresources_test.cxx
@@ -88,11 +88,9 @@ void SharedResourcesTest::testGetSourceStringWithSubstitutionThree()
void SharedResourcesTest::testGetSourceStringWithSubstitutionVector()
{
- std::vector<std::pair<const char*, OUString>> aStringToSubstitutes{
- std::pair<const char*, OUString>("$sub0$", "vector0"),
- std::pair<const char*, OUString>("$sub1$", "vector1"),
- std::pair<const char*, OUString>("$sub2$", "vector2")
- };
+ std::vector<std::pair<const char*, OUString>> aStringToSubstitutes{ { "$sub0$", "vector0" },
+ { "$sub1$", "vector1" },
+ { "$sub2$", "vector2" } };
CPPUNIT_ASSERT_EQUAL(OUString("Three substitution vector0 vector1 vector2"),
m_aResource.getResourceStringWithSubstitution(
More information about the Libreoffice-commits
mailing list