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);
fPath = NULL;
delete fAttributes;
delete fAttributes;
fAttributes = NULL;
}
@ -522,7 +522,7 @@ Inode::CopyAttributesTo(BNode *node)
strerror(written));
} else if ((size_t)written < size) {
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);
if (fullPath && Path(source))
path.Append(Path(source));
char *name = (char *)Name();
if (name != NULL) {
// 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;
if ((status = entry.GetParent(&directory)) < B_OK)
return status;
status = directory.CreateDirectory(path.Leaf(), NULL);
if (status < B_OK && status != B_FILE_EXISTS)
return status;

View File

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