unicode.cmake improvements, RagePhoto API changes
RagePhoto: remove class from Error enum RagePhotoA: error() uint32_t -> uint8_t RagePhoto-Extract: remove Error:: from Error enums ragephoto-gtkviewer: RagePhoto::Error -> uint8_t, remove Error:: from Error enum ragephoto-qtviewer: RagePhoto::Error -> uint8_t, remove Error:: from Error enum
This commit is contained in:
parent
eed3290633
commit
7326cc26c7
7 changed files with 135 additions and 123 deletions
|
|
@ -33,11 +33,11 @@ int main(int argc, char *argv[])
|
|||
const bool loaded = ragePhoto.loadFile(argv[1]);
|
||||
|
||||
if (!loaded) {
|
||||
if (ragePhoto.error() == RagePhoto::Error::Uninitialised) {
|
||||
if (ragePhoto.error() == RagePhoto::Uninitialised) {
|
||||
std::cout << "Failed to open file: " << argv[1] << std::endl;
|
||||
return 1;
|
||||
}
|
||||
else if (ragePhoto.error() <= RagePhoto::Error::PhotoReadError) {
|
||||
else if (ragePhoto.error() <= RagePhoto::PhotoReadError) {
|
||||
std::cout << "Failed to load photo" << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue