summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/fam_01service.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/fam_01service.cpp')
-rw-r--r--protocols/IcqOscarJ/src/fam_01service.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/IcqOscarJ/src/fam_01service.cpp b/protocols/IcqOscarJ/src/fam_01service.cpp
index ad6ff78bd3..d6d6e821dc 100644
--- a/protocols/IcqOscarJ/src/fam_01service.cpp
+++ b/protocols/IcqOscarJ/src/fam_01service.cpp
@@ -661,9 +661,8 @@ void CIcqProto::setUserInfo()
db_free(&dbv);
}
- if (CustomCapList.getCount())
- for (int i = 0; i < CustomCapList.getCount(); i++)
- packBuffer(&packet, (PBYTE)CustomCapList[i].caps, 0x10);
+ for (auto &it : CustomCapList)
+ packBuffer(&packet, (PBYTE)it->caps, 0x10);
sendServPacket(&packet);
}