summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-10-01 14:06:22 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-10-01 14:53:10 +0200
commit22e748e68a87e1b470146eacad374c7dfef74f5a (patch)
treeac1c35ae78736cea81f8b40e1fe0ccddc672a1b1 /fpicker
parent1aa96d69af7173af7c8e32a47699f574b1091c73 (diff)
Prefer prefix operator
Change-Id: I82f3f66bfc675dbc4a5d5b57d8715c3de01d9620 Reviewed-on: https://gerrit.libreoffice.org/42994 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/aqua/ControlHelper.mm2
-rw-r--r--fpicker/source/aqua/FilterHelper.mm10
2 files changed, 6 insertions, 6 deletions
diff --git a/fpicker/source/aqua/ControlHelper.mm b/fpicker/source/aqua/ControlHelper.mm
index d0568b9a5ea1..a9ab107bec2a 100644
--- a/fpicker/source/aqua/ControlHelper.mm
+++ b/fpicker/source/aqua/ControlHelper.mm
@@ -874,7 +874,7 @@ void ControlHelper::createFilterControl()
NSMenu *menu = [m_pFilterControl menu];
- for (NSStringList::iterator iter = m_pFilterHelper->getFilterNames()->begin(); iter != m_pFilterHelper->getFilterNames()->end(); iter++) {
+ for (NSStringList::iterator iter = m_pFilterHelper->getFilterNames()->begin(); iter != m_pFilterHelper->getFilterNames()->end(); ++iter) {
NSString *filterName = *iter;
SAL_INFO("fpicker.aqua","adding filter name: " << [filterName UTF8String]);
if ([filterName isEqualToString:@"-"]) {
diff --git a/fpicker/source/aqua/FilterHelper.mm b/fpicker/source/aqua/FilterHelper.mm
index 0454c6ef977b..668d0f643cd5 100644
--- a/fpicker/source/aqua/FilterHelper.mm
+++ b/fpicker/source/aqua/FilterHelper.mm
@@ -183,7 +183,7 @@ FilterHelper::~FilterHelper()
if (nullptr != m_pFilterNames) {
//we called retain when we added the strings to the list, so we should release them now
- for (NSStringList::iterator iter = m_pFilterNames->begin(); iter != m_pFilterNames->end(); iter++) {
+ for (NSStringList::iterator iter = m_pFilterNames->begin(); iter != m_pFilterNames->end(); ++iter) {
[*iter release];
}
delete m_pFilterNames;
@@ -345,7 +345,7 @@ bool FilterHelper::filenameMatchesFilter(NSString* sFilename)
{
rtl::OUString aName = [sFilename OUString];
- for(OUStringList::iterator iter = suffixList.begin(); iter != suffixList.end(); iter++) {
+ for(OUStringList::iterator iter = suffixList.begin(); iter != suffixList.end(); ++iter) {
if (*iter == ".*" || aName.endsWithIgnoreAsciiCase(*iter)) {
return true;
}
@@ -377,7 +377,7 @@ NSStringList* FilterHelper::getFilterNames()
if (nullptr == m_pFilterNames) {
//build filter names list
m_pFilterNames = new NSStringList;
- for (FilterList::iterator iter = m_pFilterList->begin(); iter != m_pFilterList->end(); iter++) {
+ for (FilterList::iterator iter = m_pFilterList->begin(); iter != m_pFilterList->end(); ++iter) {
m_pFilterNames->push_back([[NSString stringWithOUString:iter->getTitle()] retain]);
}
}
@@ -399,7 +399,7 @@ int FilterHelper::getCurrentFilterIndex()
int result = 0;//default to first filter
if (m_aCurrentFilter.getLength() > 0) {
int i = 0;
- for (FilterList::iterator iter = m_pFilterList->begin(); iter != m_pFilterList->end(); iter++, i++) {
+ for (FilterList::iterator iter = m_pFilterList->begin(); iter != m_pFilterList->end(); ++iter, ++i) {
rtl::OUString aTitle = iter->getTitle();
if (m_aCurrentFilter.equals(aTitle)) {
result = i;
@@ -421,7 +421,7 @@ OUStringList FilterHelper::getCurrentFilterSuffixList()
{
OUStringList retVal;
if (m_aCurrentFilter.getLength() > 0) {
- for (FilterList::iterator iter = m_pFilterList->begin(); iter != m_pFilterList->end(); iter++) {
+ for (FilterList::iterator iter = m_pFilterList->begin(); iter != m_pFilterList->end(); ++iter) {
rtl::OUString aTitle = iter->getTitle();
if (m_aCurrentFilter.equals(aTitle)) {
retVal = iter->getFilterSuffixList();