mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +00:00
Ensure all #warning statements are wrapped by #ifdef WITH_WARNINGS.
Jean-Marc this is HEAD, not 1.3.x. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8711 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
bb8f3fc98f
commit
12ac7f339e
@ -1,3 +1,11 @@
|
||||
2004-04-29 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* cursor.C:
|
||||
* factory.C:
|
||||
* pariterator.C:
|
||||
* text2.C: wrap a bunch of #warning statements
|
||||
inside #ifdef WITH_WARNINGS blocks.
|
||||
|
||||
2004-04-29 Georg Baum <Georg.Baum@post.rwth-aachen.de>
|
||||
|
||||
* buffer.C: increment format to 233.
|
||||
|
@ -326,7 +326,9 @@ void LCursor::setSelection()
|
||||
{
|
||||
selection() = true;
|
||||
// a selection with no contents is not a selection
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning doesnt look ok
|
||||
#endif
|
||||
if (par() == anchor().par() && pos() == anchor().pos())
|
||||
selection() = false;
|
||||
}
|
||||
@ -385,7 +387,9 @@ void LCursor::selHandle(bool sel)
|
||||
{
|
||||
//lyxerr << "LCursor::selHandle" << endl;
|
||||
if (sel == selection()) {
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning Alfredo: This is too strong (Andre)
|
||||
#endif
|
||||
//if (!sel)
|
||||
// noUpdate();
|
||||
return;
|
||||
|
@ -470,7 +470,9 @@ InsetBase * readInset(LyXLex & lex, Buffer const & buf)
|
||||
|
||||
inset->read(buf, lex);
|
||||
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning hack..
|
||||
#endif
|
||||
if (inset->lyxCode() == InsetBase::MATHMACRO_CODE) {
|
||||
MathMacroTemplate const * tmpl =
|
||||
static_cast<MathMacroTemplate*>(inset.get());
|
||||
|
@ -1,3 +1,10 @@
|
||||
2004-04-29 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* math_hullinset.C:
|
||||
* math_kerninset.C:
|
||||
* math_nestinset.C: wrap a bunch of #warning statements
|
||||
inside #ifdef WITH_WARNINGS blocks.
|
||||
|
||||
2004-04-20 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* math_nestinset.C (notifyCursorLeaves): squash warning about
|
||||
|
@ -1154,7 +1154,9 @@ InsetBase::Code MathHullInset::lyxCode() const
|
||||
bool MathHullInset::searchForward(BufferView * bv, string const & str,
|
||||
bool, bool)
|
||||
{
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning completely broken
|
||||
#endif
|
||||
static MathHullInset * lastformula = 0;
|
||||
static CursorBase current = DocIterator(ibegin(nucleus()));
|
||||
static MathArray ar;
|
||||
|
@ -54,7 +54,9 @@ void MathKernInset::draw(PainterInfo &, int, int) const
|
||||
|
||||
void MathKernInset::write(WriteStream & os) const
|
||||
{
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning this crashs on startup!
|
||||
#endif
|
||||
//os << "\\kern" << wid_.asLatexString() << ' ';
|
||||
os << "\\kern0mm ";
|
||||
}
|
||||
|
@ -315,7 +315,9 @@ int MathNestInset::latex(Buffer const &, std::ostream & os,
|
||||
|
||||
void MathNestInset::notifyCursorLeaves(LCursor & /*cur*/)
|
||||
{
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning look here
|
||||
#endif
|
||||
#if 0
|
||||
MathArray & ar = cur.cell();
|
||||
// remove base-only "scripts"
|
||||
|
@ -166,7 +166,9 @@ bool operator!=(ParConstIterator const & iter1, ParConstIterator const & iter2)
|
||||
}
|
||||
|
||||
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning const correctness!
|
||||
#endif
|
||||
|
||||
ParConstIterator par_const_iterator_begin(InsetBase const & inset)
|
||||
{
|
||||
|
@ -1342,7 +1342,9 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old)
|
||||
#endif
|
||||
// correct all cursor parts
|
||||
fixCursorAfterDelete(cur.top(), old.top());
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning DEPM, look here
|
||||
#endif
|
||||
//fixCursorAfterDelete(cur.anchor(), old.top());
|
||||
return false;
|
||||
}
|
||||
@ -1385,7 +1387,9 @@ bool LyXText::deleteEmptyParagraphMechanism(LCursor & cur, LCursor const & old)
|
||||
// such events. Maybe even signal/slot?
|
||||
if (cur.par() > old.par())
|
||||
--cur.par();
|
||||
#ifdef WITH_WARNINGS
|
||||
#warning DEPM, look here
|
||||
#endif
|
||||
// if (cur.anchor().par() > old.par())
|
||||
// --cur.anchor().par();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user