summaryrefslogtreecommitdiff
path: root/jvmfwk
diff options
context:
space:
mode:
Diffstat (limited to 'jvmfwk')
-rw-r--r--jvmfwk/plugins/sunmajor/pluginlib/util.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
index 85001803bebc..90911ee7d153 100644
--- a/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
+++ b/jvmfwk/plugins/sunmajor/pluginlib/util.cxx
@@ -33,6 +33,7 @@
#include <utility>
#include <algorithm>
#include <map>
+#include <string_view>
#if defined(_WIN32)
#if !defined WIN32_LEAN_AND_MEAN
@@ -252,13 +253,13 @@ FileHandleReader::readLine(OString * pLine)
m_bLf = true;
[[fallthrough]];
case 0x0A:
- *pLine += OString(m_aBuffer + nStart,
+ *pLine += std::string_view(m_aBuffer + nStart,
m_nIndex - 1 - nStart);
//TODO! check for overflow, and not very efficient
return RESULT_OK;
}
- *pLine += OString(m_aBuffer + nStart, m_nIndex - nStart);
+ *pLine += std::string_view(m_aBuffer + nStart, m_nIndex - nStart);
//TODO! check for overflow, and not very efficient
}
}