diff options
| author | Adriana Kobylak <anoo@us.ibm.com> | 2019-04-24 11:19:18 -0500 |
|---|---|---|
| committer | Ed Tanous <ed.tanous@intel.com> | 2019-05-02 00:37:45 +0000 |
| commit | ae29b8c4d22fddb9f17610f87d27b53c95509e7c (patch) | |
| tree | 5d01a7b1e328ead214f719dc6de1f70929dde049 /include | |
| parent | 7bffdb7e9da69ae5416cda8df826372c33716beb (diff) | |
| download | bmcweb-ae29b8c4d22fddb9f17610f87d27b53c95509e7c.tar.gz bmcweb-ae29b8c4d22fddb9f17610f87d27b53c95509e7c.zip | |
bmcweb: /s/boost::beast::string_view/std::string_view/g
Follow-on to https://gerrit.openbmc-project.xyz/c/openbmc/bmcweb/+/18891
Tested: Checked that the host console and virtual media endpoints
still worked as expected.
Change-Id: Ifdc5f21f3668bdf9bd24189504aaeb17b232c921
Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/kvm_websocket.hpp | 2 | ||||
| -rw-r--r-- | include/obmc_console.hpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/kvm_websocket.hpp b/include/kvm_websocket.hpp index d0c5539..ae4d899 100644 --- a/include/kvm_websocket.hpp +++ b/include/kvm_websocket.hpp @@ -87,7 +87,7 @@ inline void readDone(const boost::system::error_code& ec, std::size_t bytesRead) } outputBuffer.commit(bytesRead); - boost::beast::string_view payload( + std::string_view payload( static_cast<const char*>(outputBuffer.data().data()), bytesRead); BMCWEB_LOG_DEBUG << "Sending payload size " << payload.size(); session->sendBinary(payload); diff --git a/include/obmc_console.hpp b/include/obmc_console.hpp index 5797613..ca723d3 100644 --- a/include/obmc_console.hpp +++ b/include/obmc_console.hpp @@ -76,7 +76,7 @@ void doRead() } return; } - boost::beast::string_view payload(outputBuffer.data(), bytesRead); + std::string_view payload(outputBuffer.data(), bytesRead); for (auto session : sessions) { session->sendBinary(payload); |

