Utils: Add PathString to improve memory usage for longer paths

Change-Id: I90bca7eddfc4823406f1320a7f6e7836d53c3425
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2017-01-05 13:30:10 +01:00
parent a2642f253a
commit 023e1fa610
2 changed files with 2 additions and 1 deletions

View File

@@ -866,6 +866,7 @@ std::vector<Type> clone(const std::vector<Type> &vector)
} }
using SmallString = BasicSmallString<31>; using SmallString = BasicSmallString<31>;
using PathString = BasicSmallString<191>;
} // namespace Utils } // namespace Utils

View File

@@ -158,7 +158,7 @@ private:
}; };
using SmallStringVector = BasicSmallStringVector<31>; using SmallStringVector = BasicSmallStringVector<31>;
using PathStringVector = BasicSmallStringVector<191>;
} // namespace Utils; } // namespace Utils;
#pragma pop_macro("noexcept") #pragma pop_macro("noexcept")