diff --git a/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H b/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H
index 2b0c737bb90b2cdaec788f18f5b713fde1b059d1..9099108f928b9e4d8f080aa8449f9347cef7b292 100644
--- a/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H
+++ b/src/OpenFOAM/db/functionObjects/functionObjectFile/functionObjectFile.H
@@ -56,9 +56,9 @@ namespace Foam
 
 class functionObjectFile
 {
-protected:
+private:
 
-    // Protected data
+    // Private data
 
         //- Reference to the database
         const objectRegistry& obr_;
@@ -73,6 +73,8 @@ protected:
         PtrList<OFstream> filePtrs_;
 
 
+protected:
+
     // Protected Member Functions
 
         //- Return the base file directory for output