diff options
author | Thomas Habets <thomas@habets.se> | 2020-04-03 15:47:53 +0100 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-04-11 02:39:54 +0200 |
commit | 60144c3e2fc6e36a9a1a6ebefbbebe41adc79c2c (patch) | |
tree | cde54f4511fe427c643b6c5cf3662edcb4de28d8 /gnuradio-runtime/lib | |
parent | 3bab5f023ab406b9a4521e7c3be7fd4bd33135f7 (diff) |
qtgui: Remove boost::lexical_cast for parsing
This is the last boost::lexical_cast in gnuradio.
Diffstat (limited to 'gnuradio-runtime/lib')
-rw-r--r-- | gnuradio-runtime/lib/pmt/pmt_unv.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gnuradio-runtime/lib/pmt/pmt_unv.cc b/gnuradio-runtime/lib/pmt/pmt_unv.cc index 23135dd4fd..81030f8470 100644 --- a/gnuradio-runtime/lib/pmt/pmt_unv.cc +++ b/gnuradio-runtime/lib/pmt/pmt_unv.cc @@ -138,7 +138,8 @@ uint8_t* u8vector_writable_elements(pmt_t vector, size_t& len) const std::string pmt_u8vector::string_ref(size_t k) const { - return std::to_string(ref(k)); + const auto& ch = ref(k); + return std::string(&ch, &ch + 1); } } /* namespace pmt */ @@ -260,7 +261,8 @@ int8_t* s8vector_writable_elements(pmt_t vector, size_t& len) const std::string pmt_s8vector::string_ref(size_t k) const { - return std::to_string(ref(k)); + const auto& ch = ref(k); + return std::string(&ch, &ch + 1); } } /* namespace pmt */ |