Skip to content

Commit

Permalink
Deprecate TooManySeeks exception less confusingly
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Mar 7, 2021
1 parent 7cf5a0c commit 58fba3f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/Exceptions.h
Expand Up @@ -370,7 +370,7 @@ namespace openshot {
#ifndef SWIG
/// Exception when too many seek attempts happen
class
__attribute__ ((deprecated (TMS_DEP_MSG) ))
__attribute__ ((deprecated(TMS_DEP_MSG)))
TooManySeeks : public ExceptionBase
{
public:
Expand All @@ -381,11 +381,7 @@ namespace openshot {
* @param message A message to accompany the exception
* @param file_path (optional) The input file being processed
*/
TooManySeeks(std::string message, std::string file_path="")
#ifndef SWIG
__attribute__ ((deprecated (TMS_DEP_MSG) ))
#endif
: ExceptionBase(message), file_path(file_path) { }
TooManySeeks(std::string message, std::string file_path="") __attribute__ ((deprecated(TMS_DEP_MSG)));
virtual ~TooManySeeks() noexcept {}
};
#endif
Expand Down

0 comments on commit 58fba3f

Please sign in to comment.