mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
Fix a couple of compiler warnings
This commit is contained in:
parent
b7ec25866b
commit
565cb2a3f0
@ -275,6 +275,7 @@ char * strerror(int n);
|
||||
#define BOOST_DISABLE_THREADS 1
|
||||
#define BOOST_NO_WREGEX 1
|
||||
#define BOOST_NO_WSTRING 1
|
||||
#define BOOST_SIGNALS_NO_DEPRECATION_WARNING 1
|
||||
|
||||
// TR1 regex not supported in GCC <= 4.5
|
||||
#ifndef LYX_USE_TR1
|
||||
|
@ -65,22 +65,6 @@ namespace lyx {
|
||||
|
||||
namespace {
|
||||
|
||||
bool positionable(DocIterator const & cursor, DocIterator const & anchor)
|
||||
{
|
||||
// avoid deeper nested insets when selecting
|
||||
if (cursor.depth() > anchor.depth())
|
||||
return false;
|
||||
|
||||
// anchor might be deeper, should have same path then
|
||||
for (size_t i = 0; i < cursor.depth(); ++i)
|
||||
if (&cursor[i].inset() != &anchor[i].inset())
|
||||
return false;
|
||||
|
||||
// position should be ok.
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
// Find position closest to (x, y) in cell given by iter.
|
||||
// Used only in mathed
|
||||
DocIterator bruteFind2(Cursor const & c, int x, int y)
|
||||
|
@ -167,3 +167,4 @@ What's new
|
||||
|
||||
* BUILD/INSTALLATION
|
||||
|
||||
- fix a couple of compiler warnings.
|
||||
|
Loading…
Reference in New Issue
Block a user