fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / clucene / patches / clucene-nullptr.patch
bloba32ddb870b8c42f695437d440e03b22fb29a9230
1 --- src/core/CLucene/index/DocumentsWriter.cpp 2011-03-16 20:21:07.000000000 -0400
2 +++ src/core/CLucene/index/DocumentsWriter.cpp 2012-07-31 18:52:09.000000000 -0400
3 @@ -125,7 +125,7 @@
4 if (this->postingsFreeListDW.values){
5 if (this->postingsFreeCountDW < this->postingsFreeListDW.length) {
6 memset(this->postingsFreeListDW.values + this->postingsFreeCountDW
7 - , NULL
8 + , 0
9 , sizeof(Posting*));
11 postingsFreeListDW.deleteUntilNULL();
12 --- src/core/CLucene/util/VoidMap.h 2012-07-31 18:13:08.000000000 -0400
13 +++ src/core/CLucene/util/VoidMap.h 2012-07-31 18:42:54.000000000 -0400
14 @@ -83,7 +83,7 @@
15 _vt get( _kt k) const {
16 const_iterator itr = base::find(k);
17 if ( itr==base::end() )
18 - return (_vt)NULL;
19 + return static_cast<_vt>(0);
20 else
21 return itr->second;