Don't use std:: in the code directly (where possible).
[pulseview.git] / pv / devices / file.hpp
index 8a8c8706b253b8e47de25975d157cc4303365f79..d8e9ae9a01eb2b6879ddae931a9da2c04d39d788 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 #ifndef PULSEVIEW_PV_DEVICES_FILE_HPP
 
 #include "device.hpp"
 
+using std::string;
+
 namespace pv {
 namespace devices {
 
 class File : public Device
 {
 protected:
-       File(const std::string &file_name);
+       File(const string &file_name);
 
 public:
        /**
         * Builds the full name. It only contains all the fields.
         */
-       std::string full_name() const;
+       string full_name() const;
 
        /**
         * Builds the display name. It only contains fields as required.
         */
-       std::string display_name(const DeviceManager&) const;
+       string display_name(const DeviceManager&) const;
 
 protected:
-       const std::string file_name_;
+       const string file_name_;
 };
 
 } // namespace devices