Messing with this stuff might one day lead people to twig that

size_type != uint on 64 bit architectures.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5731 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2002-11-27 13:32:49 +00:00
parent 335ee6d4db
commit 64715661d6

View File

@ -212,8 +212,10 @@ vector<string> const DirList(string const & dir, string const & ext)
{
// This is a non-error checking C/system implementation
string extension(ext);
if (!extension.empty() && extension[0] != '.')
extension.insert(0u, 1, '.');
if (!extension.empty() && extension[0] != '.') {
string::size_type const pos = 0;
extension.insert(pos, 1, '.');
}
vector<string> dirlist;
DIR * dirp = ::opendir(dir.c_str());
if (!dirp) {