mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-06 14:38:19 +01:00
Breakpad Linux dumper: Don't be silly about global functions.
Yes, classes are useful. But that doesn't mean that every function has to gratuitously become a member function. The Google C++ Style Guide does not require this silliness, since the function is in the google_breakpad namespace anyway. a=jimblandy, r=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@519 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
parent
c50e7c604c
commit
952f3c7b73
3 changed files with 11 additions and 12 deletions
|
|
@ -355,8 +355,7 @@ std::string BaseFileName(const std::string &filename) {
|
|||
|
||||
namespace google_breakpad {
|
||||
|
||||
bool DumpSymbols::WriteSymbolFile(const std::string &obj_file,
|
||||
FILE *sym_file) {
|
||||
bool WriteSymbolFile(const std::string &obj_file, FILE *sym_file) {
|
||||
int obj_fd = open(obj_file.c_str(), O_RDONLY);
|
||||
if (obj_fd < 0) {
|
||||
fprintf(stderr, "Failed to open ELF file '%s': %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue