[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/04: runtime: updating buffer base pointe
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/04: runtime: updating buffer base pointer accessor to return const char*. |
Date: |
Thu, 19 Feb 2015 08:38:18 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 1fe3a091a6ad0940ea8880c796f89ab194508b7e
Author: Tom Rondeau <address@hidden>
Date: Fri Feb 13 16:57:53 2015 -0500
runtime: updating buffer base pointer accessor to return const char*.
---
gnuradio-runtime/include/gnuradio/buffer.h | 2 +-
gr-blocks/lib/qa_gr_block.cc | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gnuradio-runtime/include/gnuradio/buffer.h
b/gnuradio-runtime/include/gnuradio/buffer.h
index 44d5235..5da383d 100644
--- a/gnuradio-runtime/include/gnuradio/buffer.h
+++ b/gnuradio-runtime/include/gnuradio/buffer.h
@@ -70,7 +70,7 @@ namespace gr {
/*!
* \brief return the base address of the buffer
*/
- char* base() const { return d_base; }
+ const char* base() const { return static_cast<const char*>(d_base); }
/*!
* \brief return pointer to write buffer.
diff --git a/gr-blocks/lib/qa_gr_block.cc b/gr-blocks/lib/qa_gr_block.cc
index 48683dd..3e93c3d 100644
--- a/gr-blocks/lib/qa_gr_block.cc
+++ b/gr-blocks/lib/qa_gr_block.cc
@@ -94,9 +94,9 @@ qa_gr_block::t2 ()
tb->connect(nop, 0, dst1, 0);
tb->start();
- char *obuf = nop->detail()->output(0)->base();
+ const char *obuf = nop->detail()->output(0)->base();
int obsize = nop->detail()->output(0)->bufsize();
- char *ibuf = nop->detail()->input(0)->buffer()->base();
+ const char *ibuf = nop->detail()->input(0)->buffer()->base();
int ibsize = nop->detail()->input(0)->buffer()->bufsize();
CPPUNIT_ASSERT(obuf != NULL);