From: Angus Leeming Date: Wed, 27 Nov 2002 13:46:14 +0000 (+0000) Subject: As Andr� says, what a a waste of time, but at least it's now consistent. X-Git-Tag: 1.6.10~17882 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c56c4461571bbaaab9604c6f122362ea46ef46ef;p=lyx.git 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 --- diff --git a/src/LyXAction.C b/src/LyXAction.C index 6d5a7a0110..c1579d93f5 100644 --- a/src/LyXAction.C +++ b/src/LyXAction.C @@ -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); diff --git a/src/support/filetools.C b/src/support/filetools.C index 07388a571f..4cb71a7d80 100644 --- a/src/support/filetools.C +++ b/src/support/filetools.C @@ -212,10 +212,8 @@ vector 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 dirlist; DIR * dirp = ::opendir(dir.c_str()); if (!dirp) {