diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-28 19:07:07 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:46 +0200 |
commit | 52bac0169009a5f28cca7b8c6d85dc2775893908 (patch) | |
tree | 81dd930bd0c05b33e633e62ce9f6310d7ccaeb68 /vcl | |
parent | c2b5de7e5ed9d03a2e9a38345a2460c74c351047 (diff) |
uitest: fix warnings
Change-Id: I490b40ef80408ee393cb0664fb4eceeb8e48bf1b
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 737fa9283cf7..209fb200c404 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -183,14 +183,14 @@ void WindowUIObject::execute(const OUString& rAction, } else if (rAction == "TYPE") { - auto itr = rParameters.find("TEXT"); - if (itr == rParameters.end()) + auto it = rParameters.find("TEXT"); + if (it == rParameters.end()) { SAL_WARN("vcl.uitest", "missing parameter TEXT to action TYPE"); return; } - const OUString& rText = itr->second; + const OUString& rText = it->second; auto aKeyEvents = generate_key_events_from_text(rText); for (auto itr = aKeyEvents.begin(), itrEnd = aKeyEvents.end(); itr != itrEnd; ++itr) @@ -353,14 +353,14 @@ void EditUIObject::execute(const OUString& rAction, { if (rParameters.find("TEXT") != rParameters.end()) { - auto itr = rParameters.find("TEXT"); - if (itr == rParameters.end()) + auto it = rParameters.find("TEXT"); + if (it == rParameters.end()) { SAL_WARN("vcl.uitest", "missing parameter TEXT to action SET"); return; } - const OUString& rText = rParameters.find("TEXT")->second; + const OUString& rText = it->second; auto aKeyEvents = generate_key_events_from_text(rText); for (auto itr = aKeyEvents.begin(), itrEnd = aKeyEvents.end(); itr != itrEnd; ++itr) @@ -447,9 +447,12 @@ TabPageUIObject::TabPageUIObject(VclPtr<TabPage> xTabPage): } void TabPageUIObject::execute(const OUString& rAction, - const StringMap& rParameters) + const StringMap& /*rParameters*/) { + if (rAction == "SELECT") + { + } } StringMap TabPageUIObject::get_state() @@ -568,7 +571,7 @@ SpinUIObject::SpinUIObject(VclPtr<SpinButton> xSpinButton): } void SpinUIObject::execute(const OUString& rAction, - const StringMap& rParameters) + const StringMap& /*rParameters*/) { if (rAction == "UP") { |