Permalink
Browse files

Fixes github#88 (loose of query string). Added a testcase.

Note that test case is NOT cover our code, but may say if your compiler is quite nasty.
  • Loading branch information...
klirichek committed Jun 28, 2018
1 parent 85eefd1 commit 68856261b41f6950666f9e5122726839fb3c71d0
Showing with 10 additions and 1 deletion.
  1. +9 −0 src/gtests_functions.cpp
  2. +1 −1 src/searchdhttp.cpp
@@ -1195,5 +1195,14 @@ TEST ( functions, sphSplit )
ASSERT_STREQ ( dParts[1].cstr (), "a" );
}
// as we found g++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-28) works strange with curly initializer of refs
TEST ( functions, curledref )
{
CSphString sProof="abc";
const CSphString &sTest { sProof };
const CSphString &sTestc ( sProof );
ASSERT_TRUE ( &sProof==&sTestc ) << "curly brackets";
ASSERT_TRUE ( &sProof==&sTest ) << "figured brackets";
}
@@ -690,7 +690,7 @@ class HttpHandler_c
{
public:
HttpHandler_c ( const CSphString & sQuery, int iCID, bool bNeedHttpResponse )
: m_sQuery { sQuery }
: m_sQuery ( sQuery )
, m_iCID ( iCID )
, m_bNeedHttpResponse ( bNeedHttpResponse )
{}

0 comments on commit 6885626

Please sign in to comment.