Skip to content

Commit

Permalink
Remove cerr
Browse files Browse the repository at this point in the history
Closes #57 in d7f1db7
  • Loading branch information
WolfgangDrescher committed Jan 17, 2023
1 parent 02fee56 commit e71c45b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/humlib.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Programmer: Craig Stuart Sapp <[email protected]>
// Creation Date: Sat Aug 8 12:24:49 PDT 2015
// Last Modified: Di 17 Jan 2023 21:06:51 CET
// Last Modified: Di 17 Jan 2023 21:09:28 CET
// Filename: humlib.h
// URL: https://github.com/craigsapp/humlib/blob/master/include/humlib.h
// Syntax: C++11
Expand Down
5 changes: 2 additions & 3 deletions src/humlib.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Programmer: Craig Stuart Sapp <[email protected]>
// Creation Date: Sat Aug 8 12:24:49 PDT 2015
// Last Modified: Di 17 Jan 2023 21:06:51 CET
// Last Modified: Di 17 Jan 2023 21:09:28 CET
// Filename: /include/humlib.cpp
// URL: https://github.com/craigsapp/humlib/blob/master/src/humlib.cpp
// Syntax: C++11
Expand Down Expand Up @@ -78045,8 +78045,7 @@ void Tool_fb::processFile(HumdrumFile& infile) {

HTp nextToken = currentToken->getNextField();
if (nextToken && (initialTokenTrack == nextToken->getTrack())) {
cerr << nextToken->getText();

This comment has been minimized.

Copy link
@craigsapp

craigsapp Jan 17, 2023

Owner
cerr << nextToken->getText();

works, but you can also do this:

cerr << nextToken;

(they are both equivalent)

currentToken = nextToken;
currentToken = nextToken;
} else {
// Break loop if nextToken is not the same track as initialTokenTrack
break;
Expand Down
3 changes: 1 addition & 2 deletions src/tool-fb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ void Tool_fb::processFile(HumdrumFile& infile) {

HTp nextToken = currentToken->getNextField();
if (nextToken && (initialTokenTrack == nextToken->getTrack())) {
cerr << nextToken->getText();
currentToken = nextToken;
currentToken = nextToken;
} else {
// Break loop if nextToken is not the same track as initialTokenTrack
break;
Expand Down

0 comments on commit e71c45b

Please sign in to comment.