the endless quest to plug memory leaks -- episode 379
[ardour.git] / libs / pbd / shortpath.cc
index 9f9598e6178f572af3030ba94758e2c32bd72f18..3d33611b87caccb090ff88c29a34a0b38cefd80a 100644 (file)
@@ -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 <pbd/shortpath.h>
+#include <stdint.h>
+#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;
-               
+
        }
 }