Skip to content

Commit

Permalink
tag/ApeLoader: remove exception handler, let caller catch
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Jan 18, 2020
1 parent 526c778 commit bdd3167
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/tag/ApeLoader.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ typedef std::function<bool(unsigned long flags, const char *key,
/**
* Scans the APE tag values from a file.
*
* Throws on I/O error.
*
* @return false if the file could not be opened or if no APE tag is
* present
*/
Expand Down
3 changes: 3 additions & 0 deletions src/tag/ApeReplayGain.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
class InputStream;
struct ReplayGainInfo;

/**
* Throws on I/O error.
*/
bool
replay_gain_ape_read(InputStream &is, ReplayGainInfo &info);

Expand Down
2 changes: 1 addition & 1 deletion src/tag/ApeTag.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ tag_ape_import_item(unsigned long flags,
}

bool
tag_ape_scan2(InputStream &is, TagHandler &handler) noexcept
tag_ape_scan2(InputStream &is, TagHandler &handler)
{
bool recognized = false;

Expand Down
4 changes: 3 additions & 1 deletion src/tag/ApeTag.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ class TagHandler;
/**
* Scan the APE tags of a stream.
*
* Throws on I/O error.
*
* @param path_fs the path of the file in filesystem encoding
*/
bool
tag_ape_scan2(InputStream &is, TagHandler &handler) noexcept;
tag_ape_scan2(InputStream &is, TagHandler &handler);

#endif

0 comments on commit bdd3167

Please sign in to comment.