@@ -100,45 +100,45 @@ TEST(TheImageFactory, cannotCreateInstancesForSomeTypesInFiles) {
100100TEST (TheImageFactory, loadInstancesDifferentImageTypes) {
101101  fs::path testData (TESTDATA_PATH);
102102
103-   std::string  imagePath = ( testData / " DSC_3079.jpg" ). string () ;
103+   fs::path  imagePath = testData / " DSC_3079.jpg"  ;
104104  EXPECT_EQ (ImageType::jpeg, ImageFactory::getType (imagePath));
105105  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
106106
107-   imagePath = ( testData / " exiv2-bug1108.exv" ). string () ;
107+   imagePath = testData / " exiv2-bug1108.exv"  ;
108108  EXPECT_EQ (ImageType::exv, ImageFactory::getType (imagePath));
109109  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
110110
111-   imagePath = ( testData / " exiv2-canon-powershot-s40.crw" ). string () ;
111+   imagePath = testData / " exiv2-canon-powershot-s40.crw"  ;
112112  EXPECT_EQ (ImageType::crw, ImageFactory::getType (imagePath));
113113  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
114114
115-   imagePath = ( testData / " exiv2-bug1044.tif" ). string () ;
115+   imagePath = testData / " exiv2-bug1044.tif"  ;
116116  EXPECT_EQ (ImageType::tiff, ImageFactory::getType (imagePath));
117117  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
118118
119119#ifdef  EXV_HAVE_LIBZ
120-   imagePath = ( testData / " exiv2-bug1074.png" ). string () ;
120+   imagePath = testData / " exiv2-bug1074.png"  ;
121121  EXPECT_EQ (ImageType::png, ImageFactory::getType (imagePath));
122122  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
123123#endif 
124124
125-   imagePath = ( testData / " BlueSquare.xmp" ). string () ;
125+   imagePath = testData / " BlueSquare.xmp"  ;
126126  EXPECT_EQ (ImageType::xmp, ImageFactory::getType (imagePath));
127127  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
128128
129-   imagePath = ( testData / " exiv2-photoshop.psd" ). string () ;
129+   imagePath = testData / " exiv2-photoshop.psd"  ;
130130  EXPECT_EQ (ImageType::psd, ImageFactory::getType (imagePath));
131131  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
132132
133-   imagePath = ( testData / " cve_2017_1000126_stack-oob-read.webp" ). string () ;
133+   imagePath = testData / " cve_2017_1000126_stack-oob-read.webp"  ;
134134  EXPECT_EQ (ImageType::webp, ImageFactory::getType (imagePath));
135135  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
136136
137-   imagePath = ( testData / " imagemagick.pgf" ). string () ;
137+   imagePath = testData / " imagemagick.pgf"  ;
138138  EXPECT_EQ (ImageType::pgf, ImageFactory::getType (imagePath));
139139  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
140140
141-   imagePath = ( testData / " Reagan.jp2" ). string () ;
141+   imagePath = testData / " Reagan.jp2"  ;
142142  EXPECT_EQ (ImageType::jp2, ImageFactory::getType (imagePath));
143143  EXPECT_NO_THROW (ImageFactory::open (imagePath, false ));
144144}
0 commit comments