From 89d2cde9792561eb2ccdb9f2c5c8aa651d25d2f0 Mon Sep 17 00:00:00 2001 From: Robert Fewell <14uBobIT@gmail.com> Date: Fri, 29 Mar 2019 17:34:04 +0000 Subject: [PATCH] Remove some white space/tabs from gnc-filepath-utils.cpp --- libgnucash/core-utils/gnc-filepath-utils.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/libgnucash/core-utils/gnc-filepath-utils.cpp b/libgnucash/core-utils/gnc-filepath-utils.cpp index 6c5c8631da..29eedfcb95 100644 --- a/libgnucash/core-utils/gnc-filepath-utils.cpp +++ b/libgnucash/core-utils/gnc-filepath-utils.cpp @@ -374,8 +374,8 @@ gnc_validate_directory (const bfs::path &dirname) * we need to overrule it during build (when guile interferes) * and testing. */ - bfs::path home_dir(g_get_home_dir(), cvt); - home_dir.imbue(bfs_locale); + bfs::path home_dir(g_get_home_dir(), cvt); + home_dir.imbue(bfs_locale); auto homedir_exists = bfs::exists(home_dir); auto is_descendant = dir_is_descendant (dirname, home_dir); if (!homedir_exists && is_descendant) @@ -447,10 +447,10 @@ copy_recursive(const bfs::path& src, const bfs::path& dest) string cur_str = direntry->path().string(); #endif auto cur_len = cur_str.size(); - string rel_str(cur_str, old_len, cur_len - old_len); - bfs::path relpath(rel_str, cvt); + string rel_str(cur_str, old_len, cur_len - old_len); + bfs::path relpath(rel_str, cvt); auto newpath = bfs::absolute (relpath.relative_path(), dest); - newpath.imbue(bfs_locale); + newpath.imbue(bfs_locale); bfs::copy(direntry->path(), newpath); } } @@ -526,7 +526,6 @@ get_userdata_home(void) auto try_tmp_dir = true; auto userdata_home = get_user_data_dir(); - /* g_get_user_data_dir doesn't check whether the path exists nor attempts to * create it. So while it may return an actual path we may not be able to use it. * Let's check that now */ @@ -550,9 +549,9 @@ get_userdata_home(void) Hopefully we can always write there. */ if (try_tmp_dir) { - bfs::path newpath(g_get_tmp_dir (), cvt); + bfs::path newpath(g_get_tmp_dir (), cvt); userdata_home = newpath / g_get_user_name (); - userdata_home.imbue(bfs_locale); + userdata_home.imbue(bfs_locale); } g_assert(!userdata_home.empty());