mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix type conversion error.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1624 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -49,7 +49,7 @@ class IdGenerator {
|
|||||||
IdGenerator() : next_id_(kReservedId) {}
|
IdGenerator() : next_id_(kReservedId) {}
|
||||||
|
|
||||||
T GetNextId() {
|
T GetNextId() {
|
||||||
int id = ++next_id_;
|
T id = ++next_id_;
|
||||||
if (id == kReservedId) // In case the integer value wraps.
|
if (id == kReservedId) // In case the integer value wraps.
|
||||||
id = ++next_id_;
|
id = ++next_id_;
|
||||||
return id;
|
return id;
|
||||||
|
Reference in New Issue
Block a user