summaryrefslogtreecommitdiffstats
path: root/sal/inc/rtl/ustrbuf.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/inc/rtl/ustrbuf.hxx')
-rw-r--r--sal/inc/rtl/ustrbuf.hxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/sal/inc/rtl/ustrbuf.hxx b/sal/inc/rtl/ustrbuf.hxx
index 3f8421b1f3c7..3f3498aa2ecf 100644
--- a/sal/inc/rtl/ustrbuf.hxx
+++ b/sal/inc/rtl/ustrbuf.hxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -30,9 +31,7 @@
#include <osl/diagnose.h>
#include <rtl/ustrbuf.h>
-#ifndef _RTL_USTRING_HXX
#include <rtl/ustring.hxx>
-#endif
#ifdef __cplusplus
@@ -275,6 +274,12 @@ public:
*/
const sal_Unicode* getStr() const { return pData->buffer; }
+ /**
+ Return a OUString instance reflecting the current content
+ of this OUStringBuffer.
+ */
+ const OUString toString() const { return OUString(pData->buffer); }
+
/**
The character at the specified index of this string buffer is set
@@ -772,3 +777,5 @@ private:
#endif /* __cplusplus */
#endif /* _RTL_USTRBUF_HXX_ */
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */