aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/sdp/output/paths_output.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2018-07-07 13:55:43 -0400
committerRalph Amissah <ralph@amissah.com>2019-04-10 15:14:15 -0400
commitae23669169b32d4986af06c1ae9483cc9c52d39d (patch)
tree7fc84b06846bf9b09b44ca13ed969901acb717c1 /src/sdp/output/paths_output.d
parentparent ocn (diff)
0.26.4 file renames, cleaning, reorganisation
Diffstat (limited to 'src/sdp/output/paths_output.d')
-rw-r--r--src/sdp/output/paths_output.d22
1 files changed, 7 insertions, 15 deletions
diff --git a/src/sdp/output/paths_output.d b/src/sdp/output/paths_output.d
index cd4817b..8a4d623 100644
--- a/src/sdp/output/paths_output.d
+++ b/src/sdp/output/paths_output.d
@@ -14,13 +14,9 @@ template SiSUoutPaths() {
) {
struct _PathsStruct {
string output_root() {
- string out_root_;
- if (output_pth_root.length > 0) {
- out_root_ = output_pth_root;
- } else {
- out_root_ = "sisugen";
- }
- return out_root_;
+ return (output_pth_root.length > 0)
+ ? output_pth_root
+ : "sisugen";
}
string output_base() {
return asNormalizedPath(output_root.chainPath(lng)).array;
@@ -35,13 +31,9 @@ template SiSUoutPathSQLite() {
) {
struct _PathsStruct {
string output_root() {
- string out_root_;
- if (output_pth_root.length > 0) {
- out_root_ = output_pth_root;
- } else {
- out_root_ = "sisugen";
- }
- return out_root_;
+ return (output_pth_root.length > 0)
+ ? output_pth_root
+ : "sisugen";
}
string output_base() {
return asNormalizedPath(output_root).array;
@@ -70,7 +62,7 @@ template SiSUoutPathsFnPd() {
- else if pod_name != file_name
- pod_name.file_name
+/
- auto _fn_src = fn_src_pth.baseName.stripExtension;
+ string _fn_src = fn_src_pth.baseName.stripExtension;
string _output_base_name;
if (!(pod_name.empty)) {
if (pod_name == _fn_src) {