Skip to content

Commit

Permalink
Cleaned-up compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sp1ff committed Jan 11, 2024
1 parent ced5a43 commit 6bf97a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions scribbu/id3v1.hh
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,11 @@ namespace scribbu {
void set_start_time(const char *text)
{
size_t i = 0, ntext = strlen(text);
while (i < ntext && i < 7) {
while (i < ntext && i < 6) {
start_time_[i] = (char)text[i];
++i;
}
while (i < 7) {
while (i < 6) {
start_time_[i++] = 0;
}
extended_ = true;
Expand All @@ -497,11 +497,11 @@ namespace scribbu {
void set_end_time(const char *text)
{
size_t i = 0, ntext = strlen(text);
while (i < ntext && i < 7) {
while (i < ntext && i < 6) {
end_time_[i] = (char)text[i];
++i;
}
while (i < 7) {
while (i < 6) {
end_time_[i++] = 0;
}
extended_ = true;
Expand Down
3 changes: 1 addition & 2 deletions scribbu/tbt-support.hh
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ namespace scribbu
{ }
};

class process_and_concatenate:
public std::binary_function<std::string, std::shared_ptr<scribbu::tbt_support::term>, std::string>
class process_and_concatenate
{
public:
process_and_concatenate(const scribbu::file_info &fi,
Expand Down
2 changes: 1 addition & 1 deletion src/dump.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ namespace {
}

/// Dump ID3v2 tags, track data, and/or the ID3v1 tag to stdout
class dumper: public std::unary_function<void, fs::path>
class dumper
{
public:
/// The format in which we shall dump information to stdout
Expand Down
2 changes: 1 addition & 1 deletion src/report.cc
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ tdf_reporter::make_entry(const scribbu::file_info &fi,

/// A thing that knows how to report on a directory tree full of
/// ID3v2-tagged files
class reporting_strategy: public std::unary_function<void, fs::path> {
class reporting_strategy {

public:
/// return the # of files successfully processed & the # of failures; "failure"
Expand Down

0 comments on commit 6bf97a6

Please sign in to comment.