summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun6.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/view/viewfun6.cxx')
-rw-r--r--sc/source/ui/view/viewfun6.cxx17
1 files changed, 8 insertions, 9 deletions
diff --git a/sc/source/ui/view/viewfun6.cxx b/sc/source/ui/view/viewfun6.cxx
index 0374f4f14ff0..0e3cfde39e24 100644
--- a/sc/source/ui/view/viewfun6.cxx
+++ b/sc/source/ui/view/viewfun6.cxx
@@ -180,16 +180,15 @@ void ScViewFunc::DetectiveMarkPred()
if (pPath && ScRefTokenHelper::getRangeFromToken(aRange, p, aCurPos, true))
{
OUString aTabName = p->GetString().getString();
- OUStringBuffer aBuf;
- aBuf.append(*pPath);
- aBuf.append('#');
- aBuf.append(aTabName);
- aBuf.append('.');
-
OUString aRangeStr(aRange.Format(ScRefFlags::VALID));
- aBuf.append(aRangeStr);
-
- ScGlobal::OpenURL(aBuf.makeStringAndClear(), OUString());
+ OUString sUrl =
+ *pPath +
+ "#" +
+ aTabName +
+ "." +
+ aRangeStr;
+
+ ScGlobal::OpenURL(sUrl, OUString());
}
return;
}