src.ctf.fs: remove goto error handling from fs.cpp
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 3 Aug 2022 01:31:26 +0000 (21:31 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 23 Aug 2022 16:06:16 +0000 (12:06 -0400)
commitc1365af8a5d6c25d004cd43809d386655fed56da
treed3ca52f0ca3301553b19657e2151f970e17804f3
parent179014805de7a68d18096ae9fec3a02f8c94c811
src.ctf.fs: remove goto error handling from fs.cpp

gotos prevent declaring variables in the middle of functions, which is
sometimes necessary in C++.  Remove gotos used for error handling,
replace them with returning directly.

Change-Id: I15b5d6aa4897e5326fc03e2626045c83258d8eca
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8318
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/ctf/fs-src/fs.cpp
This page took 0.024489 seconds and 5 git commands to generate.