From a9aabb76a8474c473cb4f68c58abd9ff6f0027d0 Mon Sep 17 00:00:00 2001 From: kevin Date: Mon, 18 Nov 2024 11:49:45 -0500 Subject: [PATCH] cwPianoScore.h/cpp : Fix but where score load errors were no passed on. --- cwPianoScore.cpp | 3 ++- cwPianoScore.h | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cwPianoScore.cpp b/cwPianoScore.cpp index 9305f9e..09bc825 100644 --- a/cwPianoScore.cpp +++ b/cwPianoScore.cpp @@ -422,7 +422,7 @@ namespace cw errLabel: - if((rc = csv::destroy(csvH)) != kOkRC ) + if(csv::destroy(csvH) != kOkRC ) rc = cwLogError(rc,"CSV object destroy failed on '%s'.",cwStringNullGuard(fn)); return rc; @@ -631,6 +631,7 @@ cw::rc_t cw::perf_score::event_to_string( handle_t h, unsigned uid, char* buf, return rc; } + cw::rc_t cw::perf_score::test( const object_t* cfg ) { handle_t h; diff --git a/cwPianoScore.h b/cwPianoScore.h index 35bab4b..065401a 100644 --- a/cwPianoScore.h +++ b/cwPianoScore.h @@ -64,13 +64,15 @@ namespace cw bool has_loc_info_flag( handle_t h ); unsigned event_count( handle_t h ); + + // Get first event in linked list. const event_t* base_event( handle_t h ); const event_t* loc_to_event( handle_t h, unsigned loc ); // Format the event as a string for printing. rc_t event_to_string( handle_t h, unsigned uid, char* buf, unsigned buf_byte_cnt ); - + rc_t test( const object_t* cfg ); }