Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings reported by Wformat #179

Open
wants to merge 1 commit into
base: melodic-devel
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pluginlib/include/pluginlib/class_loader_imp.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ ClassLoader<T>::ClassLoader(
/***************************************************************************/
{
ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Creating ClassLoader, base = %s, address = %p",
base_class.c_str(), this);
base_class.c_str(), static_cast<void *>(this));
if (ros::package::getPath(package_).empty()) {
throw pluginlib::ClassLoaderException("Unable to find package: " + package_);
}
Expand All @@ -92,15 +92,15 @@ ClassLoader<T>::ClassLoader(
classes_available_ = determineAvailableClasses(plugin_xml_paths_);
ROS_DEBUG_NAMED("pluginlib.ClassLoader",
"Finished constructring ClassLoader, base = %s, address = %p",
base_class.c_str(), this);
base_class.c_str(), static_cast<void *>(this));
}

template<class T>
ClassLoader<T>::~ClassLoader()
/***************************************************************************/
{
ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Destroying ClassLoader, base = %s, address = %p",
getBaseClassType().c_str(), this);
getBaseClassType().c_str(), static_cast<void *>(this));
}


Expand All @@ -123,7 +123,7 @@ T * ClassLoader<T>::createClassInstance(const std::string & lookup_name, bool au
ROS_DEBUG_NAMED("pluginlib.ClassLoader",
"Attempting to create instance through low-level MultiLibraryClassLoader...");
T * obj = lowlevel_class_loader_.createUnmanagedInstance<T>(getClassType(lookup_name));
ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Instance created with object pointer = %p", obj);
ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Instance created with object pointer = %p", static_cast<void *>(obj));

return obj;
} catch (const class_loader::CreateClassException & ex) {
Expand Down