forked from AcademySoftwareFoundation/OpenTimelineIO
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply
make format
to codebase (AcademySoftwareFoundation#1088)
* tweak .clang-format * apply make-format to the c++ codebase * tweak the namespaces and constructors * apply new format options Co-authored-by: ssteinbach <[email protected]>
- Loading branch information
1 parent
7c285db
commit 0aa7765
Showing
77 changed files
with
4,818 additions
and
3,228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,29 @@ | ||
#include "opentime/errorStatus.h" | ||
|
||
namespace opentime { namespace OPENTIME_VERSION { | ||
|
||
std::string ErrorStatus::outcome_to_string(Outcome o) { | ||
switch(o) { | ||
case OK: | ||
return std::string(); | ||
case INVALID_TIMECODE_RATE: | ||
return "invalid timecode rate"; | ||
case INVALID_TIMECODE_STRING: | ||
return "string is not a valid timecode string"; | ||
case TIMECODE_RATE_MISMATCH: | ||
return "timecode specifies a frame higher than its rate"; | ||
case INVALID_TIME_STRING: | ||
return "invalid time string"; | ||
case NEGATIVE_VALUE: | ||
return "value cannot be negative here"; | ||
case INVALID_RATE_FOR_DROP_FRAME_TIMECODE: | ||
return "rate is not valid for drop frame timecode"; | ||
default: | ||
return "unknown/illegal ErrorStatus::Outcome code"; | ||
namespace opentime { namespace OPENTIME_VERSION { | ||
|
||
std::string | ||
ErrorStatus::outcome_to_string(Outcome o) | ||
{ | ||
switch (o) | ||
{ | ||
case OK: | ||
return std::string(); | ||
case INVALID_TIMECODE_RATE: | ||
return "invalid timecode rate"; | ||
case INVALID_TIMECODE_STRING: | ||
return "string is not a valid timecode string"; | ||
case TIMECODE_RATE_MISMATCH: | ||
return "timecode specifies a frame higher than its rate"; | ||
case INVALID_TIME_STRING: | ||
return "invalid time string"; | ||
case NEGATIVE_VALUE: | ||
return "value cannot be negative here"; | ||
case INVALID_RATE_FOR_DROP_FRAME_TIMECODE: | ||
return "rate is not valid for drop frame timecode"; | ||
default: | ||
return "unknown/illegal ErrorStatus::Outcome code"; | ||
}; | ||
} | ||
|
||
} } | ||
|
||
|
||
|
||
|
||
|
||
}} // namespace opentime::OPENTIME_VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.