mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-12-04 23:38:25 -05:00
26 lines
819 B
Diff
26 lines
819 B
Diff
|
diff --git a/httpservice/src/ServletContainer.cpp b/httpservice/src/ServletContainer.cpp
|
||
|
index b4af8c9..8713066 100644
|
||
|
--- a/httpservice/src/ServletContainer.cpp
|
||
|
+++ b/httpservice/src/ServletContainer.cpp
|
||
|
@@ -279,7 +279,9 @@ void ServletContainer::SetContextPath(const std::string& path)
|
||
|
|
||
|
std::string ServletContainer::GetContextPath() const
|
||
|
{
|
||
|
- return Lock(d->m_Mutex), d->m_ContextPath;
|
||
|
+ Lock l(d->m_Mutex);
|
||
|
+ US_UNUSED(l);
|
||
|
+ return d->m_ContextPath;
|
||
|
}
|
||
|
|
||
|
void ServletContainer::Start()
|
||
|
@@ -306,6 +308,8 @@ std::shared_ptr<ServletContext> ServletContainer::GetContext(
|
||
|
std::string ServletContainer::GetContextPath(
|
||
|
const ServletContext* /*context*/) const
|
||
|
{
|
||
|
- return Lock(d->m_Mutex), d->m_ContextPath;
|
||
|
+ Lock l(d->m_Mutex);
|
||
|
+ US_UNUSED(l);
|
||
|
+ return d->m_ContextPath;
|
||
|
}
|
||
|
}
|