summaryrefslogtreecommitdiffstats
path: root/o3d
diff options
context:
space:
mode:
Diffstat (limited to 'o3d')
-rw-r--r--o3d/plugin/cross/whitelist.cc2
-rw-r--r--o3d/plugin/cross/whitelist.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/o3d/plugin/cross/whitelist.cc b/o3d/plugin/cross/whitelist.cc
index 524a57b..5d98caf 100644
--- a/o3d/plugin/cross/whitelist.cc
+++ b/o3d/plugin/cross/whitelist.cc
@@ -144,7 +144,7 @@ static bool IsDomainWhitelisted(const std::string &in_url) {
host[i] = tolower(host[i]);
}
- for (int i = 0; i < arraysize(kDomainWhitelist); ++i) {
+ for (size_t i = 0; i < arraysize(kDomainWhitelist); ++i) {
size_t pos = host.rfind(kDomainWhitelist[i]);
if (pos != std::string::npos &&
((pos + strlen(kDomainWhitelist[i]) == host.length())))
diff --git a/o3d/plugin/cross/whitelist.h b/o3d/plugin/cross/whitelist.h
index f6cf277..150043a 100644
--- a/o3d/plugin/cross/whitelist.h
+++ b/o3d/plugin/cross/whitelist.h
@@ -41,4 +41,4 @@ bool IsDomainAuthorized(NPP instance);
} // namespace o3d
-#endif // O3D_PLUGIN_CROSS_WHITELIST_H_ \ No newline at end of file
+#endif // O3D_PLUGIN_CROSS_WHITELIST_H_