X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fpbd%2Fshortpath.cc;h=3d33611b87caccb090ff88c29a34a0b38cefd80a;hb=c634daef6a9de8df7245d4fb6fbbcdf0ad7ac7ff;hp=9f9598e6178f572af3030ba94758e2c32bd72f18;hpb=666e0870554705f4fb466fc6b188fe9b4000ca49;p=ardour.git diff --git a/libs/pbd/shortpath.cc b/libs/pbd/shortpath.cc index 9f9598e617..3d33611b87 100644 --- a/libs/pbd/shortpath.cc +++ b/libs/pbd/shortpath.cc @@ -1,5 +1,5 @@ /* - Copyright (C) 2000-2007 Paul Davis + Copyright (C) 2000-2007 Paul Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -17,7 +17,8 @@ */ -#include +#include +#include "pbd/shortpath.h" using namespace Glib; using namespace std; @@ -56,7 +57,7 @@ short_path (const Glib::ustring& path, ustring::size_type target_characters) return path; } } - + uint32_t so_far = (len - last_sep); uint32_t space_for = target_characters - so_far; @@ -70,6 +71,6 @@ short_path (const Glib::ustring& path, ustring::size_type target_characters) res += path.substr (last_sep - space_for, len - last_sep + space_for - 3); res += "..."; return res; - + } }