Fix error in JSONtoRedactionTarget
Change-Id: I6e82f86adfc6e1ebff2d9377dd011d0d97648848 Reviewed-on: https://gerrit.libreoffice.org/75602 Tested-by: Jenkins Reviewed-by: Muhammet Kara <muhammet.kara@collabora.com>
This commit is contained in:
@@ -384,7 +384,7 @@ RedactionTarget* JSONtoRedactionTarget(const boost::property_tree::ptree::value_
|
|||||||
{
|
{
|
||||||
OUString sName = OUString::fromUtf8(rValue.second.get<std::string>("sName").c_str());
|
OUString sName = OUString::fromUtf8(rValue.second.get<std::string>("sName").c_str());
|
||||||
RedactionTargetType eType
|
RedactionTargetType eType
|
||||||
= static_cast<RedactionTargetType>(atoi(rValue.second.get<std::string>("sName").c_str()));
|
= static_cast<RedactionTargetType>(atoi(rValue.second.get<std::string>("eType").c_str()));
|
||||||
OUString sContent = OUString::fromUtf8(rValue.second.get<std::string>("sContent").c_str());
|
OUString sContent = OUString::fromUtf8(rValue.second.get<std::string>("sContent").c_str());
|
||||||
bool bCaseSensitive
|
bool bCaseSensitive
|
||||||
= OUString::fromUtf8(rValue.second.get<std::string>("bCaseSensitive").c_str()).toBoolean();
|
= OUString::fromUtf8(rValue.second.get<std::string>("bCaseSensitive").c_str()).toBoolean();
|
||||||
|
Reference in New Issue
Block a user