+2000-10-12 <larsbj@baywatch.lyx.org>
+
+ * src/support/lyxfunctional.h: add operator= that takes a reference
+
+ * src/lyxserver.C (mkfifo): make first arg const
+
+ * src/layout.h: renamed name(...) to setName(...) to work around
+ bugs in egcs.
+
+ * src/buffer.C (setFileName): had to change name of function to
+ work around bugs in egcs. (renamed from fileName)
+
2000-10-11 Lars Gullik Bjønnes <larsbj@lyx.org>
* src/support/translator.h: move helper template clsses to
src/frontends/kde/FormCopyright.C
src/frontends/kde/FormIndex.C
src/frontends/kde/formindexdialog.C
-src/frontends/kde/formindexdialogdata.C
src/frontends/kde/FormPrint.C
-src/frontends/kde/formprintdialogdata.C
src/frontends/kde/FormRef.C
src/frontends/kde/formrefdialog.C
src/frontends/kde/FormToc.C
}
-void Buffer::fileName(string const & newfile)
+void Buffer::setFileName(string const & newfile)
{
filename = MakeAbsPath(newfile);
filepath = OnlyPath(filename);
string const getLatexName(bool no_path = true) const;
/// Change name of buffer. Updates "read-only" flag.
- void fileName(string const & newfile);
+ void setFileName(string const & newfile);
/// Name of the document's parent
void setParentName(string const &);
error = do_readStyle(lexrc, lay);
} else {
LyXLayout lay;
- lay.name(name);
+ lay.setName(name);
if (!(error = do_readStyle(lexrc, lay)))
layoutlist.push_back(lay);
}
///
string const & name() const { return name_; }
///
- void name(string const & n) { name_ = n; }
+ void setName(string const & n) { name_ = n; }
///
string const & obsoleted_by() const { return obsoleted_by_; }
///
bufferlist.close(bufferlist.getBuffer(s));
// Ok, change the name of the buffer, but don't save!
- buffer->fileName(s);
+ buffer->setFileName(s);
buffer->markDirty();
ShowMessage(buffer, _("Document renamed to '"),
}
// Ok, change the name of the buffer
- buffer->fileName(s);
+ buffer->setFileName(s);
buffer->markDirty();
bool unnamed = buffer->isUnnamed();
buffer->setUnnamed(false);
// of the document.
// Hope this is fixed this way! (Jug)
if (!MenuWrite(buffer)) {
- buffer->fileName(oldname);
+ buffer->setFileName(oldname);
buffer->setUnnamed(unnamed);
ShowMessage(buffer, _("Document could not be saved!"),
_("Holding the old name."), MakeDisplayPath(oldname));
// provide an empty mkfifo() if we do not have one. This disables the
// lyxserver.
#ifndef HAVE_MKFIFO
-int mkfifo( char *__path, mode_t __mode ) {
- return 0;
+int mkfifo(char const * __path, mode_t __mode ) {
+ return 0;
}
#endif
return *this;
}
+ back_insert_fun_iterator &
+ operator=(Type & val) {
+ container.push_back((val.*pmf)());
+ return *this;
+ }
+
back_insert_fun_iterator & operator*() {
return *this;
}