mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
As Andr� says, what a a waste of time, but at least it's now consistent.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5732 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
64715661d6
commit
c56c446157
@ -534,7 +534,7 @@ string const LyXAction::getActionName(int action) const
|
||||
{
|
||||
FuncRequest ev = retrieveActionArg(action);
|
||||
if (!ev.argument.empty())
|
||||
ev.argument.insert(0u, 1, ' ');
|
||||
ev.argument.insert(string::size_type(0), 1, ' ');
|
||||
|
||||
info_map::const_iterator const it = lyx_info_map.find(ev.action);
|
||||
|
||||
|
@ -212,10 +212,8 @@ 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] != '.') {
|
||||
string::size_type const pos = 0;
|
||||
extension.insert(pos, 1, '.');
|
||||
}
|
||||
if (!extension.empty() && extension[0] != '.')
|
||||
extension.insert(string::size_type(0), 1, '.');
|
||||
vector<string> dirlist;
|
||||
DIR * dirp = ::opendir(dir.c_str());
|
||||
if (!dirp) {
|
||||
|
Loading…
Reference in New Issue
Block a user