diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2017-01-27 19:43:23 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2017-01-27 20:44:22 +0530 |
commit | 1eef075ad555046d840f1e867ce8a259a5ffc01b (patch) | |
tree | f06b08ef7ea822d9e07e196bdbff6db1fea3e044 /sw/source/uibase/uno/unotxdoc.cxx | |
parent | 1ddf5b0ecb68333e00df72a9e367b709ff664661 (diff) |
Fix android build
Change-Id: I3a39b7adc44a61f1bd4379c2a46e559ad12e7184
Diffstat (limited to 'sw/source/uibase/uno/unotxdoc.cxx')
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx index 549b150198f0..133fc69c9f6b 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3194,7 +3194,7 @@ OUString SwXTextDocument::getPostIts() sw::annotation::SwAnnotationWin* pWin = static_cast<sw::annotation::SwAnnotationWin*>((*i)->pPostIt.get()); const SwPostItField* pField = pWin->GetPostItField(); - const std::string aAnchorPos = std::to_string(pWin->GetAnchorPos().X()) + ", " + std::to_string(pWin->GetAnchorPos().Y()); + const OString aAnchorPos = OString::number(pWin->GetAnchorPos().X()) + ", " + OString::number(pWin->GetAnchorPos().Y()); std::vector<OString> aRects; for (const basegfx::B2DRange& aRange : pWin->GetAnnotationTextRanges()) { @@ -3209,7 +3209,7 @@ OUString SwXTextDocument::getPostIts() aAnnotation.put("author", pField->GetPar1().toUtf8().getStr()); aAnnotation.put("text", pField->GetPar2().toUtf8().getStr()); aAnnotation.put("dateTime", utl::toISO8601(pField->GetDateTime().GetUNODateTime())); - aAnnotation.put("anchorPos", aAnchorPos.c_str()); + aAnnotation.put("anchorPos", aAnchorPos.getStr()); aAnnotation.put("textRange", sRects.getStr()); aAnnotations.push_back(std::make_pair("", aAnnotation)); |