Author: bonefish Date: 2010-09-12 17:05:13 +0200 (Sun, 12 Sep 2010) New Revision: 38616 Changeset: http://dev.haiku-os.org/changeset/38616 Modified: haiku/trunk/src/kits/tracker/Model.h Log: * Missing <Debug.h> include. * Automatic whitespace cleanup. Modified: haiku/trunk/src/kits/tracker/Model.h =================================================================== --- haiku/trunk/src/kits/tracker/Model.h 2010-09-12 12:42:17 UTC (rev 38615) +++ haiku/trunk/src/kits/tracker/Model.h 2010-09-12 15:05:13 UTC (rev 38616) @@ -38,6 +38,7 @@ #define _NU_MODEL_H #include <AppFileInfo.h> +#include <Debug.h> #include <Mime.h> #include <StorageDefs.h> #include <String.h> @@ -113,8 +114,8 @@ BNode *Node() const; // returns null if not Open - void GetPath(BPath *) const; - void GetEntry(BEntry *) const; + void GetPath(BPath *) const; + void GetEntry(BEntry *) const; const char *MimeType() const; const char *PreferredAppSignature() const; @@ -258,7 +259,7 @@ // and have close up model when done, etc. public: // consider failing when open does not succeed - + ModelNodeLazyOpener(Model *model, bool writable = false, bool openLater = true); ~ModelNodeLazyOpener(); @@ -339,14 +340,14 @@ } -inline IconSource +inline IconSource Model::IconFrom() const { return (IconSource)fIconFrom; } -inline void +inline void Model::SetIconFrom(IconSource from) { fIconFrom = from; @@ -470,21 +471,21 @@ } -inline bool +inline bool ModelNodeLazyOpener::IsOpen() const { return fModel->IsNodeOpen(); } -inline bool +inline bool ModelNodeLazyOpener::IsOpenForWriting() const { return fModel->IsNodeOpenForWriting(); } -inline bool +inline bool ModelNodeLazyOpener::IsOpen(bool forWriting) const { return forWriting ? fModel->IsNodeOpenForWriting() : fModel->IsNodeOpen(); @@ -498,7 +499,7 @@ } -inline status_t +inline status_t ModelNodeLazyOpener::OpenNode(bool writable) { if (writable) { @@ -506,7 +507,7 @@ return fModel->OpenNode(true); } else if (!fModel->IsNodeOpen()) return fModel->OpenNode(); - + return B_OK; }