summaryrefslogtreecommitdiffstats
path: root/searchsummary
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-05-03 23:11:40 +0200
committerTor Egge <Tor.Egge@online.no>2023-05-03 23:11:40 +0200
commitb24f0f53cf1064e9b09517e2146e918a242ed127 (patch)
tree73b08795b8afda6f2ef3a70b2e093c94443ca563 /searchsummary
parent124e9b699abe38ef5b4038be03de1268845cc97d (diff)
Use pointer to const wordfolder in juniper.
Use reference to const wordfolder in vsm adapter.
Diffstat (limited to 'searchsummary')
-rw-r--r--searchsummary/src/vespa/juniper/rpinterface.cpp2
-rw-r--r--searchsummary/src/vespa/juniper/rpinterface.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/searchsummary/src/vespa/juniper/rpinterface.cpp b/searchsummary/src/vespa/juniper/rpinterface.cpp
index afda82c1110..702cfb11f4d 100644
--- a/searchsummary/src/vespa/juniper/rpinterface.cpp
+++ b/searchsummary/src/vespa/juniper/rpinterface.cpp
@@ -37,7 +37,7 @@ void SetDebug(unsigned int mask)
}
-Juniper::Juniper(IJuniperProperties* props, Fast_WordFolder* wordfolder, int api_version) :
+Juniper::Juniper(IJuniperProperties* props, const Fast_WordFolder* wordfolder, int api_version) :
_props(props),
_wordfolder(wordfolder),
_modifier(new QueryModifier())
diff --git a/searchsummary/src/vespa/juniper/rpinterface.h b/searchsummary/src/vespa/juniper/rpinterface.h
index 5bfee1e2691..b6612f2a5b7 100644
--- a/searchsummary/src/vespa/juniper/rpinterface.h
+++ b/searchsummary/src/vespa/juniper/rpinterface.h
@@ -89,7 +89,7 @@ public:
* compatibility between versions.
*/
Juniper(IJuniperProperties* props,
- Fast_WordFolder* wordfolder, int api_version = JUNIPER_RP_ABI_VERSION);
+ const Fast_WordFolder* wordfolder, int api_version = JUNIPER_RP_ABI_VERSION);
/** Deinitialize the Juniper subsystem. Release all remaining resources
* associated with Juniper - reverse the effect of the Init function.
* Assumes that all Result objects have been released.
@@ -137,7 +137,7 @@ public:
private:
IJuniperProperties * _props;
- Fast_WordFolder * _wordfolder;
+ const Fast_WordFolder * _wordfolder;
std::unique_ptr<QueryModifier> _modifier;
};