From cead54b6e555fe907348943b4586e956771f6ad0 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 28 Jan 2015 17:53:30 +0100 Subject: Use vector::data ...in some places where it is obvious that it does not hurt that for an empty vector the obtained pointer is not necessarily a nullptr. Change-Id: Id5d66b1559ca8b8955d379bcdbfae6986ef46a51 --- xmloff/source/forms/elementimport.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/forms/elementimport.cxx b/xmloff/source/forms/elementimport.cxx index 14b09e342e94..4f501778d77b 100644 --- a/xmloff/source/forms/elementimport.cxx +++ b/xmloff/source/forms/elementimport.cxx @@ -2022,8 +2022,7 @@ namespace xmloff } while (nElementStart < nLength); - OUString *pElements = aElements.empty() ? 0 : &aElements[0]; - aList = Sequence< OUString >(pElements, aElements.size()); + aList = Sequence< OUString >(aElements.data(), aElements.size()); } else { -- cgit