Skip to content

Commit f8885a0

Browse files
committed
std::endl removal
Signed-off-by: Kevin Wheatley <kevin.wheatley@framestore.com>
1 parent 4261c80 commit f8885a0

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

vendor/openfx/Support/Library/ofxsCore.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ namespace OFX {
6161

6262
default :
6363
# ifdef DEBUG
64-
std::cout << "Threw suite exception!" << std::endl;
64+
std::cout << "Threw suite exception!" << "\n";
6565
# if defined(__APPLE__) || defined(linux)
6666
void* callstack[128];
6767
int i, frames = backtrace(callstack, 128);
6868
char** strs = backtrace_symbols(callstack, frames);
6969
for (i = 0; i < frames; ++i) {
70-
std::cout << strs[i] << std::endl;
70+
std::cout << strs[i] << "\n";
7171
}
7272
free(strs);
7373
# endif
@@ -79,13 +79,13 @@ namespace OFX {
7979
void throwHostMissingSuiteException(std::string name)
8080
{
8181
# ifdef DEBUG
82-
std::cout << "Threw suite exception! Host missing '" << name << "' suite." << std::endl;
82+
std::cout << "Threw suite exception! Host missing '" << name << "' suite." << "\n";
8383
# if defined(__APPLE__) || defined(linux)
8484
void* callstack[128];
8585
int i, frames = backtrace(callstack, 128);
8686
char** strs = backtrace_symbols(callstack, frames);
8787
for (i = 0; i < frames; ++i) {
88-
std::cout << strs[i] << std::endl;
88+
std::cout << strs[i] << "\n";
8989
}
9090
free(strs);
9191
# endif

vendor/openfx/Support/Library/ofxsImageEffect.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2788,7 +2788,7 @@ namespace OFX {
27882788
catch (const OFX::Exception::Suite &ex)
27892789
{
27902790
# ifdef DEBUG
2791-
std::cout << "Caught OFX::Exception::Suite: " << ex.what() << std::endl;
2791+
std::cout << "Caught OFX::Exception::Suite: " << ex.what() << "\n";
27922792
# endif
27932793
stat = ex.status();
27942794
}
@@ -2797,7 +2797,7 @@ namespace OFX {
27972797
catch (const OFX::Exception::HostInadequate &e)
27982798
{
27992799
# ifdef DEBUG
2800-
std::cout << "Caught OFX::Exception::HostInadequate: " << e.what() << std::endl;
2800+
std::cout << "Caught OFX::Exception::HostInadequate: " << e.what() << "\n";
28012801
# endif
28022802
stat = kOfxStatErrMissingHostFeature;
28032803
}
@@ -2806,7 +2806,7 @@ namespace OFX {
28062806
catch (const OFX::Exception::PropertyUnknownToHost &e)
28072807
{
28082808
# ifdef DEBUG
2809-
std::cout << "Caught OFX::Exception::PropertyUnknownToHost: " << e.what() << std::endl;
2809+
std::cout << "Caught OFX::Exception::PropertyUnknownToHost: " << e.what() << "\n";
28102810
# endif
28112811
stat = kOfxStatErrMissingHostFeature;
28122812
}
@@ -2828,14 +2828,14 @@ namespace OFX {
28282828
catch (const std::exception &e)
28292829
{
28302830
# ifdef DEBUG
2831-
std::cout << "Caught exception: " << e.what() << std::endl;
2831+
std::cout << "Caught exception: " << e.what() << "\n";
28322832
# endif
28332833
stat = kOfxStatFailed;
28342834
}
28352835
catch (...)
28362836
{
28372837
# ifdef DEBUG
2838-
std::cout << "Caught Unknown exception" << std::endl;
2838+
std::cout << "Caught Unknown exception\n";
28392839
# endif
28402840
stat = kOfxStatFailed;
28412841
}
@@ -2886,7 +2886,7 @@ namespace OFX {
28862886
catch (OFX::Exception::Suite &ex)
28872887
{
28882888
# ifdef DEBUG
2889-
std::cout << "Caught OFX::Exception::Suite" << std::endl;
2889+
std::cout << "Caught OFX::Exception::Suite\n";
28902890
# endif
28912891
stat = ex.status();
28922892
}
@@ -2895,7 +2895,7 @@ namespace OFX {
28952895
catch (OFX::Exception::HostInadequate &)
28962896
{
28972897
# ifdef DEBUG
2898-
std::cout << "Caught OFX::Exception::HostInadequate" << std::endl;
2898+
std::cout << "Caught OFX::Exception::HostInadequate\n";
28992899
# endif
29002900
stat = kOfxStatErrMissingHostFeature;
29012901
}
@@ -2904,7 +2904,7 @@ namespace OFX {
29042904
catch (OFX::Exception::PropertyUnknownToHost &)
29052905
{
29062906
# ifdef DEBUG
2907-
std::cout << "Caught OFX::Exception::PropertyUnknownToHost" << std::endl;
2907+
std::cout << "Caught OFX::Exception::PropertyUnknownToHost\n";
29082908
# endif
29092909
stat = kOfxStatErrMissingHostFeature;
29102910
}
@@ -2926,7 +2926,7 @@ namespace OFX {
29262926
catch (...)
29272927
{
29282928
# ifdef DEBUG
2929-
std::cout << "Caught Unknown exception" << std::endl;
2929+
std::cout << "Caught Unknown exception\n";
29302930
# endif
29312931
stat = kOfxStatFailed;
29322932
}

0 commit comments

Comments
 (0)