[Groonga-commit] groonga/grnxx at e62049c [master] Fix a bug of ExpressionBuilder::clear(). (#81)

Back to archive index

susumu.yata null+****@clear*****
Thu Oct 2 11:44:51 JST 2014


susumu.yata	2014-10-02 11:44:51 +0900 (Thu, 02 Oct 2014)

  New Revision: e62049c822a3185ec91a563fc688acbfe6f88c7d
  https://github.com/groonga/grnxx/commit/e62049c822a3185ec91a563fc688acbfe6f88c7d

  Message:
    Fix a bug of ExpressionBuilder::clear(). (#81)

  Modified files:
    lib/grnxx/expression.cpp

  Modified: lib/grnxx/expression.cpp (+2 -1)
===================================================================
--- lib/grnxx/expression.cpp    2014-10-02 11:42:15 +0900 (b68d1b2)
+++ lib/grnxx/expression.cpp    2014-10-02 11:44:51 +0900 (d21f870)
@@ -4007,7 +4007,8 @@ bool ExpressionBuilder::end_subexpression(
 }
 
 void ExpressionBuilder::clear() {
-  builders_.clear();
+  builders_.resize(nullptr, 1);
+  builders_[0]->clear();
 }
 
 unique_ptr<Expression> ExpressionBuilder::release(
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index