Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv_contrib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv_contrib
Commits
fcb266f7
Commit
fcb266f7
authored
Nov 09, 2018
by
tompollok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring catching all exceptions as const ref
parent
6e3eea54
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
23 additions
and
23 deletions
+23
-23
OpenEXRimages_HDR_Retina_toneMapping.cpp
...ired/samples/cpp/OpenEXRimages_HDR_Retina_toneMapping.cpp
+1
-1
OpenEXRimages_HDR_Retina_toneMapping_video.cpp
...amples/cpp/OpenEXRimages_HDR_Retina_toneMapping_video.cpp
+1
-1
retinaDemo.cpp
modules/bioinspired/samples/cpp/retinaDemo.cpp
+1
-1
retina_tutorial.cpp
...samples/cpp/tutorial_code/bioinspired/retina_tutorial.cpp
+1
-1
retina_ocl.cpp
modules/bioinspired/samples/ocl/retina_ocl.cpp
+1
-1
retina.cpp
modules/bioinspired/src/retina.cpp
+2
-2
retina_ocl.cpp
modules/bioinspired/src/retina_ocl.cpp
+2
-2
transientareassegmentationmodule.cpp
modules/bioinspired/src/transientareassegmentationmodule.cpp
+2
-2
facerec_demo.cpp
modules/face/samples/facerec_demo.cpp
+1
-1
facerec_eigenfaces.cpp
modules/face/samples/facerec_eigenfaces.cpp
+1
-1
facerec_fisherfaces.cpp
modules/face/samples/facerec_fisherfaces.cpp
+1
-1
facerec_lbph.cpp
modules/face/samples/facerec_lbph.cpp
+1
-1
facerec_save_load.cpp
modules/face/samples/facerec_save_load.cpp
+1
-1
facerec_video.cpp
modules/face/samples/facerec_video.cpp
+1
-1
functional.cpp
modules/matlab/generator/templates/functional.cpp
+2
-2
cv_exception.cpp
modules/matlab/test/cv_exception.cpp
+1
-1
std_exception.cpp
modules/matlab/test/std_exception.cpp
+1
-1
ovis.cpp
modules/ovis/src/ovis.cpp
+2
-2
No files found.
modules/bioinspired/samples/cpp/OpenEXRimages_HDR_Retina_toneMapping.cpp
View file @
fcb266f7
...
@@ -292,7 +292,7 @@ static void drawPlot(const cv::Mat curve, const std::string figureTitle, const i
...
@@ -292,7 +292,7 @@ static void drawPlot(const cv::Mat curve, const std::string figureTitle, const i
*/
*/
cv
::
waitKey
(
10
);
cv
::
waitKey
(
10
);
}
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
}
...
...
modules/bioinspired/samples/cpp/OpenEXRimages_HDR_Retina_toneMapping_video.cpp
View file @
fcb266f7
...
@@ -353,7 +353,7 @@ static void loadNewFrame(const std::string filenamePrototype, const int currentF
...
@@ -353,7 +353,7 @@ static void loadNewFrame(const std::string filenamePrototype, const int currentF
// jump to next frame
// jump to next frame
++
currentFrameIndex
;
++
currentFrameIndex
;
}
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
}
...
...
modules/bioinspired/samples/cpp/retinaDemo.cpp
View file @
fcb266f7
...
@@ -146,7 +146,7 @@ int main(int argc, char* argv[]) {
...
@@ -146,7 +146,7 @@ int main(int argc, char* argv[]) {
cv
::
waitKey
(
5
);
cv
::
waitKey
(
5
);
}
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
}
...
...
modules/bioinspired/samples/cpp/tutorial_code/bioinspired/retina_tutorial.cpp
View file @
fcb266f7
...
@@ -137,7 +137,7 @@ int main(int argc, char* argv[]) {
...
@@ -137,7 +137,7 @@ int main(int argc, char* argv[]) {
cv
::
imshow
(
"Retina Magno"
,
retinaOutput_magno
);
cv
::
imshow
(
"Retina Magno"
,
retinaOutput_magno
);
cv
::
waitKey
(
10
);
cv
::
waitKey
(
10
);
}
}
}
catch
(
c
v
::
Exception
e
)
}
catch
(
c
onst
cv
::
Exception
&
e
)
{
{
std
::
cerr
<<
"Error using Retina or end of video sequence reached : "
<<
e
.
what
()
<<
std
::
endl
;
std
::
cerr
<<
"Error using Retina or end of video sequence reached : "
<<
e
.
what
()
<<
std
::
endl
;
}
}
...
...
modules/bioinspired/samples/ocl/retina_ocl.cpp
View file @
fcb266f7
...
@@ -109,7 +109,7 @@ int main(int argc, char* argv[])
...
@@ -109,7 +109,7 @@ int main(int argc, char* argv[])
}
}
printf
(
"Average: %.4fms
\n
"
,
(
double
)
total_time
/
total_loop_count
/
cv
::
getTickFrequency
()
*
1000.0
);
printf
(
"Average: %.4fms
\n
"
,
(
double
)
total_time
/
total_loop_count
/
cv
::
getTickFrequency
()
*
1000.0
);
}
}
catch
(
c
v
::
Exception
e
)
catch
(
c
onst
cv
::
Exception
&
e
)
{
{
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
std
::
cerr
<<
"Error using Retina : "
<<
e
.
what
()
<<
std
::
endl
;
}
}
...
...
modules/bioinspired/src/retina.cpp
View file @
fcb266f7
...
@@ -368,7 +368,7 @@ void RetinaImpl::setup(String retinaParameterFile, const bool applyDefaultSetupO
...
@@ -368,7 +368,7 @@ void RetinaImpl::setup(String retinaParameterFile, const bool applyDefaultSetupO
cv
::
FileStorage
fs
(
retinaParameterFile
,
cv
::
FileStorage
::
READ
);
cv
::
FileStorage
fs
(
retinaParameterFile
,
cv
::
FileStorage
::
READ
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
}
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
{
printf
(
"Retina::setup: wrong/unappropriate xml parameter file : error report :`n=>%s
\n
"
,
e
.
what
());
printf
(
"Retina::setup: wrong/unappropriate xml parameter file : error report :`n=>%s
\n
"
,
e
.
what
());
if
(
applyDefaultSetupOnFailure
)
if
(
applyDefaultSetupOnFailure
)
...
@@ -422,7 +422,7 @@ void RetinaImpl::setup(cv::FileStorage &fs, const bool applyDefaultSetupOnFailur
...
@@ -422,7 +422,7 @@ void RetinaImpl::setup(cv::FileStorage &fs, const bool applyDefaultSetupOnFailur
setupIPLMagnoChannel
(
_retinaParameters
.
IplMagno
.
normaliseOutput
,
_retinaParameters
.
IplMagno
.
parasolCells_beta
,
_retinaParameters
.
IplMagno
.
parasolCells_tau
,
_retinaParameters
.
IplMagno
.
parasolCells_k
,
_retinaParameters
.
IplMagno
.
amacrinCellsTemporalCutFrequency
,
_retinaParameters
.
IplMagno
.
V0CompressionParameter
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_tau
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_k
);
setupIPLMagnoChannel
(
_retinaParameters
.
IplMagno
.
normaliseOutput
,
_retinaParameters
.
IplMagno
.
parasolCells_beta
,
_retinaParameters
.
IplMagno
.
parasolCells_tau
,
_retinaParameters
.
IplMagno
.
parasolCells_k
,
_retinaParameters
.
IplMagno
.
amacrinCellsTemporalCutFrequency
,
_retinaParameters
.
IplMagno
.
V0CompressionParameter
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_tau
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_k
);
}
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
{
printf
(
"RetinaImpl::setup: resetting retina with default parameters
\n
"
);
printf
(
"RetinaImpl::setup: resetting retina with default parameters
\n
"
);
if
(
applyDefaultSetupOnFailure
)
if
(
applyDefaultSetupOnFailure
)
...
...
modules/bioinspired/src/retina_ocl.cpp
View file @
fcb266f7
...
@@ -127,7 +127,7 @@ void RetinaOCLImpl::setup(String retinaParameterFile, const bool applyDefaultSet
...
@@ -127,7 +127,7 @@ void RetinaOCLImpl::setup(String retinaParameterFile, const bool applyDefaultSet
cv
::
FileStorage
fs
(
retinaParameterFile
,
cv
::
FileStorage
::
READ
);
cv
::
FileStorage
fs
(
retinaParameterFile
,
cv
::
FileStorage
::
READ
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
}
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
{
std
::
cout
<<
"RetinaOCLImpl::setup: wrong/inappropriate xml parameter file : error report :`n=>"
<<
e
.
what
()
<<
std
::
endl
;
std
::
cout
<<
"RetinaOCLImpl::setup: wrong/inappropriate xml parameter file : error report :`n=>"
<<
e
.
what
()
<<
std
::
endl
;
if
(
applyDefaultSetupOnFailure
)
if
(
applyDefaultSetupOnFailure
)
...
@@ -181,7 +181,7 @@ void RetinaOCLImpl::setup(cv::FileStorage &fs, const bool applyDefaultSetupOnFai
...
@@ -181,7 +181,7 @@ void RetinaOCLImpl::setup(cv::FileStorage &fs, const bool applyDefaultSetupOnFai
setupIPLMagnoChannel
(
_retinaParameters
.
IplMagno
.
normaliseOutput
,
_retinaParameters
.
IplMagno
.
parasolCells_beta
,
_retinaParameters
.
IplMagno
.
parasolCells_tau
,
_retinaParameters
.
IplMagno
.
parasolCells_k
,
_retinaParameters
.
IplMagno
.
amacrinCellsTemporalCutFrequency
,
_retinaParameters
.
IplMagno
.
V0CompressionParameter
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_tau
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_k
);
setupIPLMagnoChannel
(
_retinaParameters
.
IplMagno
.
normaliseOutput
,
_retinaParameters
.
IplMagno
.
parasolCells_beta
,
_retinaParameters
.
IplMagno
.
parasolCells_tau
,
_retinaParameters
.
IplMagno
.
parasolCells_k
,
_retinaParameters
.
IplMagno
.
amacrinCellsTemporalCutFrequency
,
_retinaParameters
.
IplMagno
.
V0CompressionParameter
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_tau
,
_retinaParameters
.
IplMagno
.
localAdaptintegration_k
);
}
}
catch
(
Exception
&
e
)
catch
(
const
Exception
&
e
)
{
{
std
::
cout
<<
"RetinaOCLImpl::setup: resetting retina with default parameters"
<<
std
::
endl
;
std
::
cout
<<
"RetinaOCLImpl::setup: resetting retina with default parameters"
<<
std
::
endl
;
if
(
applyDefaultSetupOnFailure
)
if
(
applyDefaultSetupOnFailure
)
...
...
modules/bioinspired/src/transientareassegmentationmodule.cpp
View file @
fcb266f7
...
@@ -298,7 +298,7 @@ void TransientAreasSegmentationModuleImpl::setup(String segmentationParameterFil
...
@@ -298,7 +298,7 @@ void TransientAreasSegmentationModuleImpl::setup(String segmentationParameterFil
// opening retinaParameterFile in read mode
// opening retinaParameterFile in read mode
cv
::
FileStorage
fs
(
segmentationParameterFile
,
cv
::
FileStorage
::
READ
);
cv
::
FileStorage
fs
(
segmentationParameterFile
,
cv
::
FileStorage
::
READ
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
setup
(
fs
,
applyDefaultSetupOnFailure
);
}
catch
(
cv
::
Exception
&
e
)
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
{
printf
(
"Retina::setup: wrong/unappropriate xml parameter file : error report :`n=>%s
\n
"
,
e
.
what
());
printf
(
"Retina::setup: wrong/unappropriate xml parameter file : error report :`n=>%s
\n
"
,
e
.
what
());
if
(
applyDefaultSetupOnFailure
)
if
(
applyDefaultSetupOnFailure
)
...
@@ -338,7 +338,7 @@ void TransientAreasSegmentationModuleImpl::setup(cv::FileStorage &fs, const bool
...
@@ -338,7 +338,7 @@ void TransientAreasSegmentationModuleImpl::setup(cv::FileStorage &fs, const bool
currFn
[
"contextEnergy_spatialConstant"
]
>>
_segmentationParameters
.
contextEnergy_spatialConstant
;
currFn
[
"contextEnergy_spatialConstant"
]
>>
_segmentationParameters
.
contextEnergy_spatialConstant
;
setup
(
_segmentationParameters
);
setup
(
_segmentationParameters
);
}
catch
(
cv
::
Exception
&
e
)
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
{
std
::
cout
<<
"Retina::setup: resetting retina with default parameters"
<<
std
::
endl
;
std
::
cout
<<
"Retina::setup: resetting retina with default parameters"
<<
std
::
endl
;
if
(
applyDefaultSetupOnFailure
)
if
(
applyDefaultSetupOnFailure
)
...
...
modules/face/samples/facerec_demo.cpp
View file @
fcb266f7
...
@@ -93,7 +93,7 @@ int main(int argc, const char *argv[]) {
...
@@ -93,7 +93,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
// input filename is given.
try
{
try
{
read_csv
(
fn_csv
,
images
,
labels
,
labelsInfo
);
read_csv
(
fn_csv
,
images
,
labels
,
labelsInfo
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
// nothing more we can do
exit
(
1
);
exit
(
1
);
...
...
modules/face/samples/facerec_eigenfaces.cpp
View file @
fcb266f7
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
// input filename is given.
try
{
try
{
read_csv
(
fn_csv
,
images
,
labels
);
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
// nothing more we can do
exit
(
1
);
exit
(
1
);
...
...
modules/face/samples/facerec_fisherfaces.cpp
View file @
fcb266f7
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
// input filename is given.
try
{
try
{
read_csv
(
fn_csv
,
images
,
labels
);
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
// nothing more we can do
exit
(
1
);
exit
(
1
);
...
...
modules/face/samples/facerec_lbph.cpp
View file @
fcb266f7
...
@@ -62,7 +62,7 @@ int main(int argc, const char *argv[]) {
...
@@ -62,7 +62,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
// input filename is given.
try
{
try
{
read_csv
(
fn_csv
,
images
,
labels
);
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
// nothing more we can do
exit
(
1
);
exit
(
1
);
...
...
modules/face/samples/facerec_save_load.cpp
View file @
fcb266f7
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
...
@@ -85,7 +85,7 @@ int main(int argc, const char *argv[]) {
// input filename is given.
// input filename is given.
try
{
try
{
read_csv
(
fn_csv
,
images
,
labels
);
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
// nothing more we can do
exit
(
1
);
exit
(
1
);
...
...
modules/face/samples/facerec_video.cpp
View file @
fcb266f7
...
@@ -68,7 +68,7 @@ int main(int argc, const char *argv[]) {
...
@@ -68,7 +68,7 @@ int main(int argc, const char *argv[]) {
// Read in the data (fails if no valid input filename is given, but you'll get an error message):
// Read in the data (fails if no valid input filename is given, but you'll get an error message):
try
{
try
{
read_csv
(
fn_csv
,
images
,
labels
);
read_csv
(
fn_csv
,
images
,
labels
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
cerr
<<
"Error opening file
\"
"
<<
fn_csv
<<
"
\"
. Reason: "
<<
e
.
msg
<<
endl
;
// nothing more we can do
// nothing more we can do
exit
(
1
);
exit
(
1
);
...
...
modules/matlab/generator/templates/functional.cpp
View file @
fcb266f7
...
@@ -85,9 +85,9 @@ addVariant("{{ fun.name }}", {{ fun.req|inputs|length }}, {{ fun.opt|inputs|leng
...
@@ -85,9 +85,9 @@ addVariant("{{ fun.name }}", {{ fun.req|inputs|length }}, {{ fun.opt|inputs|leng
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try
{
try
{
{{
compose
(
fun
)
}}
{{
compose
(
fun
)
}}
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
error
(
std
::
string
(
"cv::exception caught: "
).
append
(
e
.
what
()).
c_str
());
error
(
std
::
string
(
"cv::exception caught: "
).
append
(
e
.
what
()).
c_str
());
}
catch
(
std
::
exception
&
e
)
{
}
catch
(
const
std
::
exception
&
e
)
{
error
(
std
::
string
(
"std::exception caught: "
).
append
(
e
.
what
()).
c_str
());
error
(
std
::
string
(
"std::exception caught: "
).
append
(
e
.
what
()).
c_str
());
}
catch
(...)
{
}
catch
(...)
{
error
(
"Uncaught exception occurred in {{fun.name}}"
);
error
(
"Uncaught exception occurred in {{fun.name}}"
);
...
...
modules/matlab/test/cv_exception.cpp
View file @
fcb266f7
...
@@ -25,7 +25,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
...
@@ -25,7 +25,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try
{
try
{
throw
cv
::
Exception
(
-
1
,
"OpenCV exception thrown"
,
__func__
,
__FILE__
,
__LINE__
);
throw
cv
::
Exception
(
-
1
,
"OpenCV exception thrown"
,
__func__
,
__FILE__
,
__LINE__
);
}
catch
(
cv
::
Exception
&
e
)
{
}
catch
(
c
onst
c
v
::
Exception
&
e
)
{
mexErrMsgTxt
(
e
.
what
());
mexErrMsgTxt
(
e
.
what
());
}
catch
(...)
{
}
catch
(...)
{
mexErrMsgTxt
(
"Incorrect exception caught!"
);
mexErrMsgTxt
(
"Incorrect exception caught!"
);
...
...
modules/matlab/test/std_exception.cpp
View file @
fcb266f7
...
@@ -24,7 +24,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
...
@@ -24,7 +24,7 @@ void mexFunction(int nlhs, mxArray* plhs[],
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
// [out =] namespace.fun(src1, ..., srcn, dst1, ..., dstn, opt1, ..., optn);
try
{
try
{
throw
std
::
exception
();
throw
std
::
exception
();
}
catch
(
std
::
exception
&
e
)
{
}
catch
(
const
std
::
exception
&
e
)
{
mexErrMsgTxt
(
e
.
what
());
mexErrMsgTxt
(
e
.
what
());
}
catch
(...)
{
}
catch
(...)
{
mexErrMsgTxt
(
"Incorrect exception caught!"
);
mexErrMsgTxt
(
"Incorrect exception caught!"
);
...
...
modules/ovis/src/ovis.cpp
View file @
fcb266f7
...
@@ -149,7 +149,7 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
...
@@ -149,7 +149,7 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
if
(
mo
)
if
(
mo
)
return
*
mo
->
getParentSceneNode
()
->
getParentSceneNode
();
return
*
mo
->
getParentSceneNode
()
->
getParentSceneNode
();
}
}
catch
(
ItemIdentityException
&
)
catch
(
const
ItemIdentityException
&
)
{
{
// ignore
// ignore
}
}
...
@@ -159,7 +159,7 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
...
@@ -159,7 +159,7 @@ static SceneNode& _getSceneNode(SceneManager* sceneMgr, const String& name)
if
(
!
mo
)
if
(
!
mo
)
mo
=
sceneMgr
->
getMovableObject
(
name
,
"Light"
);
mo
=
sceneMgr
->
getMovableObject
(
name
,
"Light"
);
}
}
catch
(
ItemIdentityException
&
)
catch
(
const
ItemIdentityException
&
)
{
{
// ignore
// ignore
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment