Add constness

This commit is contained in:
Ai Lin Chia
2016-09-30 16:11:22 +02:00
parent 397b2a0d06
commit d18518a122
2 changed files with 4 additions and 4 deletions

@ -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

@ -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