mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-18 13:12:50 +00:00
Remove unused includes, fix std::get logic at editwidget
This commit is contained in:
parent
2fac4d0e40
commit
2e7d41373b
@ -240,9 +240,14 @@ std::string CSVFilter::EditWidget::generateFilter(const FilterData& filterData,
|
||||
|
||||
std::string quotesResolved;
|
||||
if (std::get_if<std::string>(&filterData.searchData))
|
||||
quotesResolved = *(std::get_if<std::string>(&filterData.searchData));
|
||||
quotesResolved = std::get<std::string>(filterData.searchData);
|
||||
else
|
||||
{
|
||||
Log(Debug::Warning) << "Generating record filter failed.";
|
||||
return "";
|
||||
}
|
||||
if (stringOrValue == "string")
|
||||
quotesResolved = '"' + std::get<std::string>(filterData.searchData) + '"';
|
||||
quotesResolved = '"' + quotesResolved + '"';
|
||||
|
||||
std::stringstream ss;
|
||||
if (multipleColumns)
|
||||
|
@ -12,8 +12,6 @@
|
||||
#include "filterdata.hpp"
|
||||
#include "recordfilterbox.hpp"
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
||||
#include <apps/opencs/model/world/tablemimedata.hpp>
|
||||
#include <apps/opencs/model/world/universalid.hpp>
|
||||
#include <apps/opencs/view/world/dragrecordtable.hpp>
|
||||
|
@ -17,8 +17,6 @@
|
||||
|
||||
#include <apps/opencs/view/doc/subview.hpp>
|
||||
|
||||
#include <components/debug/debuglog.hpp>
|
||||
|
||||
#include "../../model/doc/document.hpp"
|
||||
#include "../../model/world/tablemimedata.hpp"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user