aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/sphinxsearch-devel
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2013-10-01 20:20:25 +0800
committermarino <marino@FreeBSD.org>2013-10-01 20:20:25 +0800
commit2aee913b159c4a389cdf41aa03d2712003c110a2 (patch)
tree186f46253aac38d2bc83bc48ddae47e4cf122136 /textproc/sphinxsearch-devel
parent28a9360c3713c715ffe364c036de63f9bfc8ce35 (diff)
downloadfreebsd-ports-gnome-2aee913b159c4a389cdf41aa03d2712003c110a2.tar.gz
freebsd-ports-gnome-2aee913b159c4a389cdf41aa03d2712003c110a2.tar.zst
freebsd-ports-gnome-2aee913b159c4a389cdf41aa03d2712003c110a2.zip
textproc/sphinxsearch-devel: Fix c++ scope issues
Approved by: portmgr (bapt, implicit)
Diffstat (limited to 'textproc/sphinxsearch-devel')
-rw-r--r--textproc/sphinxsearch-devel/files/patch-src_sphinxexpr.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/textproc/sphinxsearch-devel/files/patch-src_sphinxexpr.cpp b/textproc/sphinxsearch-devel/files/patch-src_sphinxexpr.cpp
new file mode 100644
index 000000000000..95af72ef21b8
--- /dev/null
+++ b/textproc/sphinxsearch-devel/files/patch-src_sphinxexpr.cpp
@@ -0,0 +1,29 @@
+--- src/sphinxexpr.cpp.orig 2011-03-11 17:43:11.000000000 +0000
++++ src/sphinxexpr.cpp
+@@ -1722,7 +1722,7 @@ public:
+ /// evaluate arg, return interval id
+ virtual int IntEval ( const CSphMatch & tMatch ) const
+ {
+- T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
++ T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
+ ARRAY_FOREACH ( i, this->m_dValues ) // FIXME! OPTIMIZE! perform binary search here
+ if ( val<this->m_dValues[i] )
+ return i;
+@@ -1753,7 +1753,7 @@ public:
+ /// evaluate arg, return interval id
+ virtual int IntEval ( const CSphMatch & tMatch ) const
+ {
+- T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
++ T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
+ ARRAY_FOREACH ( i, m_dTurnPoints )
+ if ( val < Expr_ArgVsSet_c<T>::ExprEval ( m_dTurnPoints[i], tMatch ) )
+ return i;
+@@ -1799,7 +1799,7 @@ public:
+ /// evaluate arg, check if the value is within set
+ virtual int IntEval ( const CSphMatch & tMatch ) const
+ {
+- T val = ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
++ T val = this->ExprEval ( this->m_pArg, tMatch ); // 'this' fixes gcc braindamage
+ return this->m_dValues.BinarySearch ( val )!=NULL;
+ }
+