Automatic whitespace cleanup.

This commit is contained in:
Axel Dörfler 2012-12-02 20:54:16 +01:00
parent 772c9704b9
commit 91d335e0b7
2 changed files with 6 additions and 6 deletions

View File

@ -91,7 +91,7 @@ Inode::_Unset()
free(fPath); free(fPath);
fPath = NULL; fPath = NULL;
delete fAttributes; delete fAttributes;
fAttributes = NULL; fAttributes = NULL;
} }
@ -522,7 +522,7 @@ Inode::CopyAttributesTo(BNode *node)
strerror(written)); strerror(written));
} else if ((size_t)written < size) { } else if ((size_t)written < size) {
printf("could only write %ld bytes (from %ld) at attribute \"%s\"\n", printf("could only write %ld bytes (from %ld) at attribute \"%s\"\n",
written, size, name); written, size, name);
} }
} }
@ -1075,7 +1075,7 @@ Directory::CopyTo(const char *root, bool fullPath, Inode::Source *source)
BPath path(root); BPath path(root);
if (fullPath && Path(source)) if (fullPath && Path(source))
path.Append(Path(source)); path.Append(Path(source));
char *name = (char *)Name(); char *name = (char *)Name();
if (name != NULL) { if (name != NULL) {
// changes the filename in the inode buffer (for deleted entries) // changes the filename in the inode buffer (for deleted entries)
@ -1094,7 +1094,7 @@ Directory::CopyTo(const char *root, bool fullPath, Inode::Source *source)
BDirectory directory; BDirectory directory;
if ((status = entry.GetParent(&directory)) < B_OK) if ((status = entry.GetParent(&directory)) < B_OK)
return status; return status;
status = directory.CreateDirectory(path.Leaf(), NULL); status = directory.CreateDirectory(path.Leaf(), NULL);
if (status < B_OK && status != B_FILE_EXISTS) if (status < B_OK && status != B_FILE_EXISTS)
return status; return status;

View File

@ -114,7 +114,7 @@ class DataStream : public Inode, public BPositionIO {
virtual off_t Position() const; virtual off_t Position() const;
virtual status_t SetSize(off_t size); virtual status_t SetSize(off_t size);
private: private:
int32 fCurrent; int32 fCurrent;
int32 fLevel; int32 fLevel;
@ -156,7 +156,7 @@ class Directory : public DataStream {
Directory(Disk *disk, bfs_inode *inode, bool ownBuffer = true); Directory(Disk *disk, bfs_inode *inode, bool ownBuffer = true);
Directory(const Inode &inode); Directory(const Inode &inode);
~Directory(); ~Directory();
virtual status_t InitCheck(); virtual status_t InitCheck();
virtual status_t CopyTo(const char *path, bool fullPath = true, virtual status_t CopyTo(const char *path, bool fullPath = true,
Inode::Source *source = NULL); Inode::Source *source = NULL);