forked from Mirrors/privacore-open-source-search-engine
Add constness
This commit is contained in:
@ -1312,7 +1312,7 @@ static void indexDocWrapper2 ( int fd , void *state ) {
|
||||
// . user is requesting to inject this url
|
||||
// . returns false if blocked and your callback will be called when done
|
||||
// . returns true and sets g_errno on error
|
||||
bool XmlDoc::injectDoc ( char *url ,
|
||||
bool XmlDoc::injectDoc ( const char *url ,
|
||||
CollectionRec *cr ,
|
||||
char *content ,
|
||||
bool contentHasMimeArg ,
|
||||
@ -1320,7 +1320,7 @@ bool XmlDoc::injectDoc ( char *url ,
|
||||
int32_t charset,
|
||||
|
||||
bool deleteUrl,
|
||||
char *contentTypeStr, // text/html application/json
|
||||
const char *contentTypeStr, // text/html application/json
|
||||
bool spiderLinks ,
|
||||
char newOnly, // index iff new
|
||||
|
||||
|
4
XmlDoc.h
4
XmlDoc.h
@ -1160,7 +1160,7 @@ public:
|
||||
// vector is 1-1 with words in the document body.
|
||||
char *getFragVec ( );
|
||||
|
||||
bool injectDoc ( char *url ,
|
||||
bool injectDoc ( const char *url ,
|
||||
class CollectionRec *cr ,
|
||||
char *content ,
|
||||
bool contentHasMime ,
|
||||
@ -1168,7 +1168,7 @@ public:
|
||||
int32_t charset,
|
||||
|
||||
bool deleteUrl,
|
||||
char *contentTypeStr, // text/html, text/xml etc.
|
||||
const char *contentTypeStr, // text/html, text/xml etc.
|
||||
bool spiderLinks ,
|
||||
char newOnly, // index iff new
|
||||
|
||||
|
Reference in New Issue
Block a user