mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@@ -15,7 +15,7 @@ bool GetResourceDir(std::string& dir) {
|
||||
char buff[1024];
|
||||
|
||||
// Retrieve the executable path.
|
||||
ssize_t len = readlink("/proc/self/exe", buff, sizeof(buff)-1);
|
||||
ssize_t len = readlink("/proc/self/exe", buff, sizeof(buff) - 1);
|
||||
if (len == -1)
|
||||
return false;
|
||||
|
||||
@@ -27,10 +27,9 @@ bool GetResourceDir(std::string& dir) {
|
||||
return false;
|
||||
|
||||
// Add "files" to the path.
|
||||
strcpy(pos+1, "files"); // NOLINT(runtime/printf)
|
||||
strcpy(pos + 1, "files");
|
||||
dir = std::string(buff);
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace client
|
||||
|
||||
|
Reference in New Issue
Block a user