mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Quick fix for the memory leak + docs
This commit is contained in:
@@ -9,8 +9,8 @@ using Cursor = blink::WebCursorInfo::Type;
|
||||
|
||||
namespace atom {
|
||||
|
||||
std::string CursorTypeToString(const content::WebCursor::CursorInfo* info) {
|
||||
switch (info->type) {
|
||||
std::string CursorTypeToString(const content::WebCursor::CursorInfo& info) {
|
||||
switch (info.type) {
|
||||
case Cursor::TypePointer: return "default";
|
||||
case Cursor::TypeCross: return "crosshair";
|
||||
case Cursor::TypeHand: return "pointer";
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
namespace atom {
|
||||
|
||||
// Returns the cursor's type as a string.
|
||||
std::string CursorTypeToString(const content::WebCursor::CursorInfo* info);
|
||||
std::string CursorTypeToString(const content::WebCursor::CursorInfo& info);
|
||||
|
||||
} // namespace atom
|
||||
|
||||
|
||||
Reference in New Issue
Block a user