summaryrefslogtreecommitdiff
path: root/libs/pbd/file_utils.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2014-06-20 11:07:29 +1000
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-25 12:40:10 -0400
commita2260689596a694c4369aa1a43c58cddfd5b0bad (patch)
tree4a0a8ae779e49c3bf23773a0cf1fafd4d2396b1a /libs/pbd/file_utils.cc
parentcb3a60493620e5965de72d34fe0c0d2cce7ec037 (diff)
Change formatting of DEBUG_TRACE calls to match style guide
Diffstat (limited to 'libs/pbd/file_utils.cc')
-rw-r--r--libs/pbd/file_utils.cc33
1 files changed, 13 insertions, 20 deletions
diff --git a/libs/pbd/file_utils.cc b/libs/pbd/file_utils.cc
index 1101ba6504..618dccf4dd 100644
--- a/libs/pbd/file_utils.cc
+++ b/libs/pbd/file_utils.cc
@@ -127,10 +127,8 @@ find_files_matching_pattern (vector<string>& result,
string filename = Glib::path_get_basename (*file_iter);
if (!pattern.match(filename)) continue;
- DEBUG_TRACE (
- DEBUG::FileUtils,
- string_compose("Found file %1\n", *file_iter)
- );
+ DEBUG_TRACE (DEBUG::FileUtils,
+ string_compose("Found file %1\n", *file_iter));
result.push_back(*file_iter);
}
@@ -155,29 +153,24 @@ find_file (const Searchpath& search_path,
find_files_matching_pattern (tmp, search_path, filename);
- if (tmp.size() == 0)
- {
- DEBUG_TRACE (
- DEBUG::FileUtils,
- string_compose("No file matching %1 found in Path: %2\n", filename, search_path.to_string())
- );
+ if (tmp.size() == 0) {
+ DEBUG_TRACE (DEBUG::FileUtils,
+ string_compose("No file matching %1 found in Path: %2\n",
+ filename, search_path.to_string()));
return false;
}
- if (tmp.size() != 1)
- {
- DEBUG_TRACE (
- DEBUG::FileUtils,
- string_compose("Found more that one file matching %1 in Path: %2\n", filename, search_path.to_string())
- );
+ if (tmp.size() != 1) {
+ DEBUG_TRACE (DEBUG::FileUtils,
+ string_compose("Found more that one file matching %1 in Path: %2\n",
+ filename, search_path.to_string()));
}
result = tmp.front();
- DEBUG_TRACE (
- DEBUG::FileUtils,
- string_compose("Found file %1 in Path: %2\n", filename, search_path.to_string())
- );
+ DEBUG_TRACE (DEBUG::FileUtils,
+ string_compose("Found file %1 in Path: %2\n",
+ filename, search_path.to_string()));
return true;
}