Format line length to 80 instead of 100
This commit is contained in:
parent
be0c0e278a
commit
2ece711c2e
27 changed files with 161 additions and 96 deletions
|
@ -1,5 +1,6 @@
|
|||
// This is generated file. Do not modify directly.
|
||||
// Path to the code generator: tools/generate_library_loader/generate_library_loader.py .
|
||||
// Path to the code generator:
|
||||
// tools/generate_library_loader/generate_library_loader.py .
|
||||
|
||||
#include "browser/linux/libnotify_loader.h"
|
||||
|
||||
|
@ -68,9 +69,9 @@ bool LibNotifyLoader::Load(const std::string& library_name) {
|
|||
return false;
|
||||
}
|
||||
|
||||
notify_notification_set_image_from_pixbuf =
|
||||
reinterpret_cast<decltype(this->notify_notification_set_image_from_pixbuf)>(
|
||||
dlsym(library_, "notify_notification_set_image_from_pixbuf"));
|
||||
notify_notification_set_image_from_pixbuf = reinterpret_cast<decltype(
|
||||
this->notify_notification_set_image_from_pixbuf)>(
|
||||
dlsym(library_, "notify_notification_set_image_from_pixbuf"));
|
||||
if (!notify_notification_set_image_from_pixbuf) {
|
||||
CleanUp(true);
|
||||
return false;
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
// This is generated file. Do not modify directly.
|
||||
// Path to the code generator: tools/generate_library_loader/generate_library_loader.py .
|
||||
// Path to the code generator:
|
||||
// tools/generate_library_loader/generate_library_loader.py .
|
||||
|
||||
#ifndef BRIGHTRAY_BROWSER_LINUX_LIBNOTIFY_LOADER_H_
|
||||
#define BRIGHTRAY_BROWSER_LINUX_LIBNOTIFY_LOADER_H_
|
||||
|
@ -24,9 +25,11 @@ class LibNotifyLoader {
|
|||
decltype(&::notify_get_server_info) notify_get_server_info;
|
||||
decltype(&::notify_notification_new) notify_notification_new;
|
||||
decltype(&::notify_notification_add_action) notify_notification_add_action;
|
||||
decltype(&::notify_notification_set_image_from_pixbuf) notify_notification_set_image_from_pixbuf;
|
||||
decltype(&::notify_notification_set_image_from_pixbuf)
|
||||
notify_notification_set_image_from_pixbuf;
|
||||
decltype(&::notify_notification_set_timeout) notify_notification_set_timeout;
|
||||
decltype(&::notify_notification_set_hint_string) notify_notification_set_hint_string;
|
||||
decltype(&::notify_notification_set_hint_string)
|
||||
notify_notification_set_hint_string;
|
||||
decltype(&::notify_notification_show) notify_notification_show;
|
||||
decltype(&::notify_notification_close) notify_notification_close;
|
||||
|
||||
|
|
|
@ -22,7 +22,8 @@ bool HasCapability(const std::string& capability) {
|
|||
bool result = false;
|
||||
GList* capabilities = libnotify_loader_.notify_get_server_caps();
|
||||
|
||||
if (g_list_find_custom(capabilities, capability.c_str(), (GCompareFunc) g_strcmp0) != NULL)
|
||||
if (g_list_find_custom(capabilities, capability.c_str(),
|
||||
(GCompareFunc)g_strcmp0) != NULL)
|
||||
result = true;
|
||||
|
||||
g_list_free_full(capabilities, g_free);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue