summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-09-06 20:08:31 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-09-07 08:15:18 +0200
commit084f60a07cf5ba41d4dd8f9bb2726c78eb8a7874 (patch)
tree7589a1ef474f4ad905801ba2f4f5b34e5d9a9308 /starmath
parent7ccfae545d7650a7f3e6bc8a010c97cd0a60e9a5 (diff)
Avoid repeating the return type from the declaration
Change-Id: I0dce02d10b8c74e80f5672e2dd580b6837ba3291 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121732 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/rtfexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/rtfexport.cxx b/starmath/source/rtfexport.cxx
index 9ce0bb3e1dbe..ee5c486eae61 100644
--- a/starmath/source/rtfexport.cxx
+++ b/starmath/source/rtfexport.cxx
@@ -182,7 +182,7 @@ OString mathSymbolToString(const SmNode* node, rtl_TextEncoding nEncoding)
assert(node->GetType() == SmNodeType::Math || node->GetType() == SmNodeType::MathIdent);
auto txtnode = static_cast<const SmTextNode*>(node);
if (txtnode->GetText().isEmpty())
- return OString();
+ return {};
assert(txtnode->GetText().getLength() == 1);
sal_Unicode chr = SmTextNode::ConvertSymbolToUnicode(txtnode->GetText()[0]);
OUString aValue(chr);