Explorar o código

QtAutomoc: Eliminate compiler warning

David Cole %!s(int64=14) %!d(string=hai) anos
pai
achega
920a046015
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Source/cmQtAutomoc.cxx

+ 1 - 1
Source/cmQtAutomoc.cxx

@@ -519,7 +519,7 @@ void cmQtAutomoc::ParseCppFile(const std::string& absFilename,
   const std::string absPath = cmsys::SystemTools::GetFilenamePath(
   const std::string absPath = cmsys::SystemTools::GetFilenamePath(
                    cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/';
                    cmsys::SystemTools::GetRealPath(absFilename.c_str())) + '/';
 
 
-  long matchOffset = 0;
+  std::string::size_type matchOffset = 0;
   if (!mocIncludeRegExp.find(contentsString.c_str()))
   if (!mocIncludeRegExp.find(contentsString.c_str()))
     {
     {
     // no moc #include, look whether we need to create a moc from
     // no moc #include, look whether we need to create a moc from