summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-01-28 17:53:30 +0100
committerStephan Bergmann <sbergman@redhat.com>2015-01-28 17:56:18 +0100
commitcead54b6e555fe907348943b4586e956771f6ad0 (patch)
tree509e515c969fa27449fd7f7674c252e742133aae /xmloff
parented874d2eab1a6b1146f411a5a83cc790d3226f10 (diff)
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
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/forms/elementimport.cxx3
1 files changed, 1 insertions, 2 deletions
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
{