summaryrefslogtreecommitdiff
path: root/lib/process_xml.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:07 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:07 +0200
commit88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170 (patch)
treec6c5babb49b90293380106b81ae5c446959ac70f /lib/process_xml.cpp
parent5.3 (diff)
downloadFreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.gz
FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.tar.bz2
FreeFileSync-88a8b528e20013c0aa3cc6bcd9659b0b5ddd9170.zip
5.4
Diffstat (limited to 'lib/process_xml.cpp')
-rw-r--r--lib/process_xml.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/process_xml.cpp b/lib/process_xml.cpp
index a3ed5bfc..677618b4 100644
--- a/lib/process_xml.cpp
+++ b/lib/process_xml.cpp
@@ -646,7 +646,7 @@ bool readText(const std::string& input, DirectionConfig::Variant& value)
template <> inline
-bool readValue(const XmlElement& input, ColumnAttributeRim& value)
+bool readStruc(const XmlElement& input, ColumnAttributeRim& value)
{
XmlIn in(input);
bool rv1 = in.attribute("Type", value.type_);
@@ -656,7 +656,7 @@ bool readValue(const XmlElement& input, ColumnAttributeRim& value)
}
template <> inline
-void writeValue(const ColumnAttributeRim& value, XmlElement& output)
+void writeStruc(const ColumnAttributeRim& value, XmlElement& output)
{
XmlOut out(output);
out.attribute("Type", value.type_);
@@ -666,7 +666,7 @@ void writeValue(const ColumnAttributeRim& value, XmlElement& output)
template <> inline
-bool readValue(const XmlElement& input, ColumnAttributeNavi& value)
+bool readStruc(const XmlElement& input, ColumnAttributeNavi& value)
{
XmlIn in(input);
bool rv1 = in.attribute("Type", value.type_);
@@ -676,7 +676,7 @@ bool readValue(const XmlElement& input, ColumnAttributeNavi& value)
}
template <> inline
-void writeValue(const ColumnAttributeNavi& value, XmlElement& output)
+void writeStruc(const ColumnAttributeNavi& value, XmlElement& output)
{
XmlOut out(output);
out.attribute("Type", value.type_);
@@ -812,7 +812,7 @@ void readConfig(const XmlIn& in, xmlAccess::XmlGuiConfig& config)
inGuiCfg["HideFiltered" ](config.hideFilteredElements);
inGuiCfg["HandleError" ](config.handleError);
- inGuiCfg["SyncPreviewActive"](config.syncPreviewEnabled);
+ inGuiCfg["SyncPreviewActive"](config.showSyncAction);
}
@@ -1081,7 +1081,7 @@ void writeConfig(const XmlGuiConfig& config, XmlOut& out)
outGuiCfg["HideFiltered" ](config.hideFilteredElements);
outGuiCfg["HandleError" ](config.handleError);
- outGuiCfg["SyncPreviewActive"](config.syncPreviewEnabled);
+ outGuiCfg["SyncPreviewActive"](config.showSyncAction);
}
void writeConfig(const XmlBatchConfig& config, XmlOut& out)
@@ -1220,9 +1220,9 @@ void xmlAccess::writeConfig(const XmlGlobalSettings& config)
}
-wxString xmlAccess::extractJobName(const wxString& configFilename)
+std::wstring xmlAccess::extractJobName(const Zstring& configFilename)
{
- const wxString shortName = afterLast(configFilename, utf8CvrtTo<wxString>(FILE_NAME_SEPARATOR)); //returns the whole string if separator not found
- const wxString jobName = beforeLast(shortName, L'.'); //returns empty string if seperator not found
- return jobName.IsEmpty() ? shortName : jobName;
+ const Zstring shortName = afterLast(configFilename, FILE_NAME_SEPARATOR); //returns the whole string if separator not found
+ const Zstring jobName = beforeLast(shortName, Zstr('.')); //returns empty string if seperator not found
+ return utfCvrtTo<std::wstring>(jobName.empty() ? shortName : jobName);
}
bgstack15