summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/id.h
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2015-08-14 19:56:53 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 07:49:58 +1000
commit454b2d4e6997aa0273d1149403a7c3e952ba2b2c (patch)
tree3d47b38acbe90134bbd76b943ee7c9ed22f2d2ba /libs/pbd/pbd/id.h
parente31f242836456e98e428595c77c89cf953aa2c41 (diff)
Use PBD string conversion functions in PBD::ID instead of snprintf
Keep ID::print in place for now and replace usage in subsequent commit to minimize changes
Diffstat (limited to 'libs/pbd/pbd/id.h')
-rw-r--r--libs/pbd/pbd/id.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/pbd/pbd/id.h b/libs/pbd/pbd/id.h
index 5316e7c20e..ca62b10dc2 100644
--- a/libs/pbd/pbd/id.h
+++ b/libs/pbd/pbd/id.h
@@ -56,7 +56,8 @@ class LIBPBD_API ID {
}
void print (char* buf, uint32_t bufsize) const;
- std::string to_s() const;
+
+ std::string to_s () const;
static uint64_t counter() { return _counter; }
static void init_counter (uint64_t val) { _counter = val; }
@@ -64,7 +65,7 @@ class LIBPBD_API ID {
private:
uint64_t _id;
- int string_assign (std::string);
+ bool string_assign (std::string);
static Glib::Threads::Mutex* counter_lock;
static uint64_t _counter;