From 8775d2e9687baa190d4090c2291b2a72dac66055 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Sun, 17 Jun 2012 18:43:00 +0000 Subject: [PATCH] use buildPath instead of string concat --- autocomplete.d | 4 ++-- main.d | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/autocomplete.d b/autocomplete.d index ca38542..0f65a23 100644 --- a/autocomplete.d +++ b/autocomplete.d @@ -326,10 +326,10 @@ struct AutoComplete foreach (path; context.importDirectories) { stderr.writeln("Searching for ", path, "/", part); - if (!exists(path ~ "/" ~ part)) + if (!exists(buildPath(path, part)) continue; stderr.writeln("found it"); - foreach (DirEntry dirEntry; dirEntries(path ~ "/" ~ part, + foreach (DirEntry dirEntry; dirEntries(buildPath(path, part), SpanMode.shallow)) { if (dirEntry.isDir) diff --git a/main.d b/main.d index 6351065..3d9aed3 100644 --- a/main.d +++ b/main.d @@ -219,7 +219,5 @@ void main(string[] args) m.writeCtagsTo(stdout, ""); } } - } } -