mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-21 23:09:40 +00:00
fix ugly hack
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5733 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c56c446157
commit
d0ba17263c
@ -1,3 +1,7 @@
|
||||
2002-11-27 Lars Gullik Bjønnes <larsbj@birdstep.com>
|
||||
|
||||
* filetools.C (DirList): remove all ugly hacks and do it nice
|
||||
|
||||
2002-11-13 Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr>
|
||||
|
||||
* lyxsum.C: an ugly hack to compile with non-gnu linkers
|
||||
|
@ -211,9 +211,11 @@ string const FileOpenSearch(string const & path, string const & name,
|
||||
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(string::size_type(0), 1, '.');
|
||||
string extension;
|
||||
if (!ext.empty() && ext[0] != '.')
|
||||
extension += '.';
|
||||
extension += ext;
|
||||
|
||||
vector<string> dirlist;
|
||||
DIR * dirp = ::opendir(dir.c_str());
|
||||
if (!dirp) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user