Add braces for the main functions in the new source files at samples

v0.27.3
Luis Diaz Mas 7 years ago committed by Luis Díaz Más
parent 7d8edbe781
commit d96b619515

@ -15,7 +15,9 @@ void add(Exiv2::Internal::CiffHeader* pHead);
void help();
void write(const std::string& filename, const Exiv2::Internal::CiffHeader* pHead);
int main(int argc, char* const argv[]) try {
int main(int argc, char* const argv[])
{
try {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " file\n";
std::cout << "Edit the CIFF structure of a CRW file\n";
@ -80,6 +82,7 @@ int main(int argc, char* const argv[]) try {
std::cerr << e << "\n";
return -1;
}
}
void write(const std::string& filename, const Exiv2::Internal::CiffHeader* pHead)
{

@ -8,7 +8,9 @@
#include <iostream>
int main(int argc, char* const argv[]) try {
int main(int argc, char* const argv[])
{
try {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " file\n";
std::cout << "Print the CIFF structure of a CRW file\n";
@ -45,3 +47,4 @@ int main(int argc, char* const argv[]) try {
std::cerr << e << "\n";
return -1;
}
}

@ -7,7 +7,9 @@
#include "exif.hpp"
#include "image.hpp"
int main(int argc, char* const argv[]) try {
int main(int argc, char* const argv[])
{
try {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " file\n";
return 1;
@ -45,3 +47,4 @@ int main(int argc, char* const argv[]) try {
std::cout << "Caught Exiv2 exception '" << e << "'\n";
return -1;
}
}

@ -7,7 +7,9 @@
#include <string>
#include "image.hpp"
int main(int argc, char* const argv[]) try {
int main(int argc, char* const argv[])
{
try {
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " file\n";
return 1;
@ -30,3 +32,4 @@ int main(int argc, char* const argv[]) try {
std::cout << "Caught Exiv2 exception '" << e << "'\n";
return -1;
}
}

Loading…
Cancel
Save